-
Notifications
You must be signed in to change notification settings - Fork 17
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
Output cjs builds, react-scripts support #140
Comments
Hi, thanks for the issue & reproduction! Right now I acknowledge this isn't ideal though. I want to support the wider r3f community, many of which use CJS still via tools like react-scripts and parcel, so I'm working on adding cjs builds now. |
In v0.9.3 support for react-scripts and parcel (and others) should be fixed. Interestingly, there are still issues importing Downloading the sandbox and running it locally, or using a cloud sandbox, there's no issues though: https://codesandbox.io/p/sandbox/recast-navigation-react-scripts-example-8wy6hh |
Given this looks like a CodeSandbox-specific issue, I'll close this, and we can track the fix for CodeSandbox here: #145 |
Repro: https://codesandbox.io/s/sad-dawn-hdq9zf?file=/src/App.js
When using init() within a React app, a syntax Error appears.
Cannot use 'import.meta' outside a module
The text was updated successfully, but these errors were encountered: