Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mime.getType() is not a function #50

Open
floswald opened this issue Jan 16, 2019 · 5 comments
Open

mime.getType() is not a function #50

floswald opened this issue Jan 16, 2019 · 5 comments
Labels

Comments

@floswald
Copy link

hi again,

i'm back with something related to #37 and #41. no idea why it stopped working now again - it did work for quite a while:

➜  intro git:(gh-pages) ✗ bs e
0% exporting file 1/1mime.getType(...) is not a function
mime.getType(...) is not a function
mime.getType(...) is not a function
mime.getType(...) is not a function
mime.getType(...) is not a function
mime.getType(...) is not a function
100% exporting file 1/1


   ╭─────────────────────────────────────╮
   │                                     │
   │   Update available 2.3.1 → 2.3.2    │
   │    Run npm i backslide to update    │
   │                                     │
   ╰─────────────────────────────────────╯

➜  intro git:(gh-pages) ✗ npm i backslide
npm WARN saveError ENOENT: no such file or directory, open '/Users/florian.oswald/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/florian.oswald/package.json'
npm WARN florian.oswald No description
npm WARN florian.oswald No repository field.
npm WARN florian.oswald No README data
npm WARN florian.oswald No license field.

+ backslide@2.3.2
updated 1 package and audited 15293 packages in 4.838s
found 3 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details
➜  intro git:(gh-pages) ✗ bs e           
0% exporting file 1/1mime.getType(...) is not a function
mime.getType(...) is not a function
mime.getType(...) is not a function
mime.getType(...) is not a function
mime.getType(...) is not a function
mime.getType(...) is not a function
100% exporting file 1/1

the resulting html is missing the included pictures.

@argent-smith
Copy link

I have this problem as well, running a dockerized version.

@sinedied sinedied added the bug label Jan 19, 2019
@sinedied
Copy link
Owner

Strange, I thought this was fixed? I'll take a look as soon as I can

@sinedied
Copy link
Owner

I did a fresh install of 2.3.2 and I could not reproduce the issue 😕
Can you tell me more about your env? (npm/yarn version, node version, OS/version)

@sinedied
Copy link
Owner

@floswald From your log, it seems you are missing the global flag to properly update backslide: npm i -g backslide@latest should make sure you have the latest version.

As for the docker version you should contact the maintainer of the image on docker hub, it seems it wasn't updated with the version that have the fix.

@argent-smith
Copy link

I retried via yarn install backslide && yarn exec bs export -- successfully. Would appreciate the success in Docker image, too ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants