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

Error during file creation (mime.lookup is not a function) #4

Open
clusterberries opened this issue Sep 15, 2017 · 2 comments
Open

Comments

@clusterberries
Copy link

clusterberries commented Sep 15, 2017

Hi!
I'm creating a file using new FileAPI.File(path). Recently I reinstalled node_modules in the project and following error occurred: TypeError: mime.lookup is not a function.
I checked node_modules and found that mime module version is 2.0.1. In this version API has been changes (e.g. lookup method was renamed). If I forced npm to install 1.2.11 and it works fine.
Please change mime version in package.json, e.g. "mime": "1.2.11" (without "^") should fix it.
Thanks!

@jssuttles
Copy link

https://github.com/voodoohop/file-api

@alecmev
Copy link

alecmev commented Jun 4, 2018

Published @restlessbit's fork (which also embeds some dependencies) as @jeremejevs/file-api. If you're using yarn, you can alias it with yarn add file-api@npm:@jeremejevs/file-api.

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

No branches or pull requests

3 participants