You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Importing effector-react-slots in create-react-app v5.0.0 project.
After npm run start getting an error
ERROR in ./node_modules/effector-react-slots/dist/module.js 2:0-83
Module not found: Error: Can't resolve 'react/jsx-runtime' in '/Users/soulfull/dev/product-guide/node_modules/effector-react-slots/dist'
Did you mean 'jsx-runtime.js'?
BREAKING CHANGE: The request 'react/jsx-runtime' 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.
Environment info
current version of create-react-app: 5.0.0
node - 16.13.0
npm -8.1.0
The text was updated successfully, but these errors were encountered:
Is it possible to remove "type": "module" from package.json?
I forked repo and test without type: module. The error is gone.
Additionally, I got an error on npm run build
🚨 Build failed.
@parcel/core: The plugin "@parcel/transformer-typescript-types" is not compatible with the current
version of Parcel. Requires "^2.3.1" but the current version is "2.2.1".
Soulfull
changed the title
Bug: Module not found: Error: Can't resolve 'react/jsx-runtime'
Module not found: Error: Can't resolve 'react/jsx-runtime'
Feb 17, 2022
Describe the bug
Importing
effector-react-slots
increate-react-app v5.0.0
project.After
npm run start
getting an errorEnvironment info
current version of create-react-app: 5.0.0
node - 16.13.0
npm -8.1.0
The text was updated successfully, but these errors were encountered: