-
Notifications
You must be signed in to change notification settings - Fork 26k
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: self is not defined on edge runtime #43662
Comments
Duplicate of #43458 |
Having the same issue just started a new project with next.config.js file
error
index page
|
I dont understand how edge runtime can go GA with issue and either why this is closed. |
@pksorensen I'm having the same you, but if I run the next.js app inside Linux (WSL) this doesn't happen. So this seems related to next.js edge runtime not working properly on Windows, could someone help us confirm and have this issue re-open? @balazsorban44 |
for anyone still having this problem, this error means that edge code is running on Nodejs, where self is not defined you can work around this problem defining edge runtime for every page with the config export |
@remorses I already have the |
Same thing happens with me on windows on /pages/products/[id].tsx.
Works fine on Ubuntu. |
After upgrading to |
I can confirm the problem is resolved for me now. Thanks! |
yes im using windows 10 |
Yes, i am using windows 10 also. Have not worked on the project since i reported this issue, so can verifyi in a few days again that its still a problem. |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
PS C:\dev\dps\test\my-app> npx next info
Which area(s) of Next.js are affected? (leave empty if unsure)
Middleware / Edge (API routes, runtime)
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
N/A
To Reproduce
Create new project:
npx create-next-app@latest --ts
add
to index.tsx
and
npm run build
Describe the Bug
Expected Behavior
That it build
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: