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

Compile errors - using v2 #18

Closed
niltonxp2 opened this issue Feb 8, 2022 · 1 comment
Closed

Compile errors - using v2 #18

niltonxp2 opened this issue Feb 8, 2022 · 1 comment

Comments

@niltonxp2
Copy link

ERROR in ./node_modules/react-extras/dist/body-class.js 7:0-43

Module not found: Error: Can't resolve './element-class' in 'C:\Workspace\harv-Harvest-frontend\node_modules\react-extras\dist'
Did you mean 'element-class.js'?
BREAKING CHANGE: The request './element-class' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.


ERROR in ./node_modules/react-extras/dist/choose.js 3:0-22

Module not found: Error: Can't resolve './if' in 'C:\Workspace\harv-Harvest-frontend\node_modules\react-extras\dist'
Did you mean 'if.js'?
BREAKING CHANGE: The request './if' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.


ERROR in ./node_modules/react-extras/dist/index.js 1:0-54

Module not found: Error: Can't resolve 'auto-bind/react' in 'C:\Workspace\harv-Harvest-frontend\node_modules\react-extras\dist'
Did you mean 'react.js'?
BREAKING CHANGE: The request 'auto-bind/react' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.


ERROR in ./node_modules/react-extras/dist/root-class.js 7:0-43

Module not found: Error: Can't resolve './element-class' in 'C:\Workspace\harv-Harvest-frontend\node_modules\react-extras\dist'
Did you mean 'element-class.js'?
BREAKING CHANGE: The request './element-class' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

@niltonxp2
Copy link
Author

niltonxp2 commented Feb 8, 2022

I added .js and it worked!

This happened after upgrading react-scripts from v4.0.3 to v.5.0.0

@niltonxp2 niltonxp2 changed the title Compile errors - using CRA Compile errors - using v2 Feb 8, 2022
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

1 participant