-
Notifications
You must be signed in to change notification settings - Fork 2k
Imports missing extensions, build failing with Webpack 5 #2856
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
Comments
workaround: #2721 (comment) |
Is there a workaround without being able to edit your webpack config? React scripts 5.0.0 uses Webpack 5, which causes this error, however you cannot change the webpack config. I don't think this is your problem, just wondering if anyone else has this with CRA |
@christopher-caldwell I am not sure if this is the right way to go about, as I am still having issues on CRA. I used
While the |
delete your node_modules and reinstall it. |
Description
When building my react app with webpack 5, I encounter Module not found errors, which prevent me from building the app.
Example error:
Additional information
Putting the extensions in the index.mjs file seems to fix the issue. However, I am not familiar with the Flow types, and therefore unable to make a pull request.
To reproduce
The text was updated successfully, but these errors were encountered: