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
Can't build because of ´Module not found: Error: Can't resolve 'react/jsx-runtime'´ #578
Comments
🎉 Thanks for opening your first issue here! Welcome to the community! |
has same problems |
same here |
It appears
|
Actually, the breaking change was introduced in
|
Ah...it looks like So, in summary:
|
Are you sure React v18 is compatible with Docusaurus? |
Trying various versions of react/react-dom/react-live hasn't gotten this plugin to run with the betas and Docusaurus 2.4.1. Has anyone found the magic combo to get it running? |
@drwelby Using the declarations suggested by @sserrata works for me: package.json
|
@sserrata react 17 is a peer dependency of docusaurus (up until the 3.0 beta at least, which I think this tool does not support). Is it not possible to lock the version of react-live within |
Using the
didn't work for me. Still the same error:
|
"overrides": { In package.json worked for me. At least, I was able to compile using 2.0.0-beta.3. |
@sserrata I think this should be re-opened and addressed by pinning |
Agreed. We'll make sure to test with the latest Docusaurus before baking the change into our stable release. |
Describe the bug
When trying to build Docusaurus an error is thrown. I'm using the standard configuration based on the installation instructions.
Expected behavior
Building and serving Docusaurus successful.
Current behavior
The following error is thrown:
Possible solution
Maybe check compatibility with other packages?
Steps to reproduce
Use standard config for Docusaurus and docusaurus-openapi-docs with the following package versions:
Screenshots
Context
Docusaurus can't be build.
Your Environment
The text was updated successfully, but these errors were encountered: