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

Module/Resolve Error with React 17 #22

Closed
augustsaintfreytag opened this issue May 16, 2022 · 2 comments · Fixed by #23
Closed

Module/Resolve Error with React 17 #22

augustsaintfreytag opened this issue May 16, 2022 · 2 comments · Fixed by #23

Comments

@augustsaintfreytag
Copy link

Describe the bug
Trying to use the rich textarea component fails to compile using Node 16 or 17 and React 17.

ERROR in ./node_modules/rich-textarea/lib/index.mjs 1:0-56

Module not found: Error: Can't resolve 'react/jsx-runtime' in '<project>/node_modules/rich-textarea/lib'
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.

To Reproduce
Import and use the component.

Expected behavior
The project should compile.

Platform:

  • OS: macOS Monterey 12.3.1
  • Package Version: ^0.14.0
  • React Version: ^17.0.2
  • Node Version: 16.13.0, 17.9.0 (both tested)
@inokawa
Copy link
Owner

inokawa commented May 16, 2022

It looks like the same issue as facebook/react#20235 .
It has some workarounds.

@inokawa
Copy link
Owner

inokawa commented Jun 17, 2022

Fixed in 0.14.2.
Thank you for reporting it!

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

Successfully merging a pull request may close this issue.

2 participants