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
Adding an _app.js file in v10.0.4 causes @babel/runtime error #20440
Comments
i have same problems.. Error message:
What is the solution? |
Meanwhile, my error was this:
I have also seen
In both of these cases, the nonsensical downgrade/upgrade of I have no idea why it works; I end up with the same version of In particular, with a bit more detail, and an extra step just for clarity:
Maybe it won't work for you though -- it didn't work for Cassidy. |
@tremby Thanks for the feedback! i tried your steps. ( i'm using yarn, not npm) Successed only step2 (using @babel/runtime@7.12.1). |
I'm not able to reproduce this, however, I have a feeling it's a bug with npm that's causing this. Can you try to delete both |
@Timer my update line was tiny so you might have missed it, but I fixed it this way:
It's a weird one. I did try the package-lock.json and node_modules thing first, and it didn't work. |
Oh interesting, yeah I must've misread that! Our hands are a bit tied when it comes to npm bugs. However, this PR may prevent this specific instance: #19538 If you have the original |
I'm having this same exact problem with any Next version since 10.0.5. The only workaround I've found is downgrading Next to version 10.0.4. |
I also have the same problem. My workaround is to delete |
Same issue, only solution was to downgrade Next to 10.0.4 |
I had the same problem after cleaning up some unused dependencies. I tried upgrading everything, cleaning the yarn.lock but nothing worked. After enabling webpack5, the error is gone. See https://nextjs.org/docs/messages/webpack5 for more info. |
Has a similar issue happen on my jenkins build job, it built fine for me locally. (next@10.1.3)
enabling webpack5 on my next.config.js solved it for me. hats off to @christian-fuss
|
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. |
Bug report
Describe the bug
I have a basic Next.js v10.0.4 application, and when I add an
_app.js
file, I get this error:When I downgrade to v10.0.3, the error goes away.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
_app.js
file:Expected behavior
I expect the application to run without any user-facing changes.
System information
Additional context
Specifically I was trying to update this repo and a couple others, but I haven't pushed any yet because of this, and all of them have had this issue. I deleted
node_modules
before updating the Next.js version.I tried doing the following to see if that would change anything, but no dice:
Update: I downgraded to Next.js v10.0.3, and then back to v10.0.4, and now it is working just fine again!
The text was updated successfully, but these errors were encountered: