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 not found: Can't resolve 'regenerator-runtime' -- after upgrading from 11 to 12.0.2-canary.8 #30605

Closed
meglio opened this issue Oct 29, 2021 · 5 comments · Fixed by #30786
Labels
SWC Related to minification/transpilation in Next.js.
Milestone

Comments

@meglio
Copy link

meglio commented Oct 29, 2021

What version of Next.js are you using?

12.0.2-canary.8

What version of Node.js are you using?

16.3.0

What browser are you using?

Firefox

What operating system are you using?

macOS

How are you deploying your application?

yarn dev

Describe the Bug

Running yarn build defined as "build": "next build" in package.json throws an error in multiple files:

Module not found: Can't resolve 'regenerator-runtime' in '/Users/xxx/...'

Expected Behavior

Since I have not changed anything but upgrading Next.js from 11 to 12, I expect it not to fail builds.

To Reproduce

Use yarn 3.0.2 and latest Next.js

@meglio meglio added the bug Issue was opened via the bug report template. label Oct 29, 2021
@timneutkens
Copy link
Member

Regenerator-runtime is installed, but I'm assuming it's related to the path not being absolute, definitely sounds like a bug, thanks for reporting!

https://github.com/vercel/next.js/blob/canary/packages/next/package.json#L106

@timneutkens timneutkens added SWC Related to minification/transpilation in Next.js. kind: bug and removed bug Issue was opened via the bug report template. labels Oct 29, 2021
@timneutkens timneutkens modified the milestones: 12.0.2, 12.0.x Oct 29, 2021
@timneutkens
Copy link
Member

@kdy1 is going to add an option which will allow us to provide the path in next-swc-loader 👍

@sicarius97
Copy link
Contributor

@timneutkens Any updates on this particular issue? I saw it looks like the pr is still sitting open. I also have this issue in upgrading to next 12 across all my projects, since they are all using yarn 3.0.2

@kdy1
Copy link
Member

kdy1 commented Nov 2, 2021

@timneutkens timneutkens mentioned this issue Nov 2, 2021
10 tasks
timneutkens added a commit to timneutkens/next.js that referenced this issue Nov 2, 2021
@balazsorban44
Copy link
Member

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.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
SWC Related to minification/transpilation in Next.js.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants