-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
ReferenceError: regeneratorRuntime is not defined in next v10 #23720
Comments
I am seeing the same issue, using NX like you as well. |
edit: Zustand issue followed from the closed linked issue: pmndrs/zustand#351 |
Hi, could you verify if this is still the case with the |
@balazsorban44 I have jut seen this running Next 12.0.4. I'm not able to test newer versions because of issues with yarn PnP support bug. |
#32115 (comment) is also an option. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@balazsorban44 Seems like the regeneratorRuntime issue is triggered by having a webpack config as follows:
Commenting out the
|
After some research, this seems to be a reoccurring issue with Nx, I suggest you post this there to get help. |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
10.0.9
What version of Node.js are you using?
14.15.5
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
When using next js with react 16 I am getting
I am using @nrwl/nx to setup react and next applications.
Here is an extract from my package.json and versions.
We migrated to next js 10, but react is at v16.
You can notice that react app is working just fine while nextjs app crashes.
Expected Behavior
Nextjs app should work fine.
If there are some incompatible versions of next and react it should be noted somewhere in the docs. Some useful warnings in the console would be much appreciated.
(it is quite strange that reactjs can work with babel versions mentioned above, but nextjs fails to do so)
To Reproduce
create new workspace with nextjs
npx create-nx-workspace --preset=next
nx g @nrwl/react:application plain-react
Downgrade react and react-dom to 16.14.0
Here is a minimal repo where this issue can be seen
https://github.com/tar-aldev/regenerator-error-next
Just clone it run
npm i
npm run plain-react
npm run next-react
Go to localhost:4200 and you'll see blank screen and error in console
Go to localhost:3000 and you'll see react app is working fine
The text was updated successfully, but these errors were encountered: