-
Notifications
You must be signed in to change notification settings - Fork 247
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
Next JS dev mode: ReferenceError: File is not defined #208
Comments
I got the same error with Nextjs and Material-ui. Perhaps this is a bug in the new version of I installed the previous version and it helped me. Try: |
I've ended up building my own custom drag & drop / click to upload component out of MUI components so that I could customise the look of it and control some of the logic a bit more. Thanks for that advice though - hopefully it's helpful to anyone else with the same problem |
I got the same error, thank you @Nigorro. I don't understand why this PR has been closed if the bug is there. |
Hi @tristan-nel , @Nigorro and @acabreragnz , Thanks for your feedback, it seems this issue is related to the newly introduced feature to allow preloading It is a quite strange error since Can you please provide more info about your setup? Which versions of NodeJS and NextJS are you using? And if you are using Typescript, which version? |
I got the exactly same error with the same env (NextJS + TypeScript + Mui). |
@panz3r here my versions,
Thank you for this great component, let me know if you need extra info. |
Same here
|
Same error here. Ubuntu 19.04
|
Can you please publish version 3.3.1 to NPM? the latest version is still showing 3.3.0 |
Bug Report
Describe the bug
When attempting to use DropzoneArea in a Next JS app (running with
npm run dev
) which is using Material UI, the attached error occurs in console, and the following error is displayed in the window:Steps to reproduce
npm run dev
Expected behavior
Run the page without errors on both dev and production mode. It works with
npm run build && npm start
, but not withnpm run dev
### Screenshots
See the screenshot below:
Versions
@material-ui/core
version: ^4.9.11material-ui-dropzone
version: ^3.3.0Additional context
Console error log:
localhost-1593081881279.log
The text was updated successfully, but these errors were encountered: