-
Notifications
You must be signed in to change notification settings - Fork 262
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
Document not defined #793
Comments
I wanted to add that the issue can be solved by making these changes on index.js (Credit goes to: abbasEbadian as mentioned on issue 785) From: To: I could have raised a PR for this, but I can see that there is a similar PR from AaronO, which is meant for Deno, but I guess it would solve this particular issue as well :) |
What environment are you using that requires extra checking for determing browser? Can you provide a minimal reproduction? The reason we're holding #769 is because |
I'm closing this issue. Turns out, it was a mistake from our end, some dude had reconfigured window to be an empty object at the top level -_- But, what still bugs me though is that that code was written some time back and the builds were still passing up till v12. oh well... thank you nonetheless :) |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Getting the stacktrace mentioned on issue 785 during build step on next v12. It was not a problem on prior major versions.
If the current behavior is a bug, please provide the steps to reproduce and possibly a minimal demo or testcase in the form of a Next.js app, CodeSandbox URL or similar
This could be difficult as I myself ran across this bug at work and could not reproduce this error locally at home.
What is the expected behavior?
It should'nt throw the error.
Environment (include versions)
Did this work in previous versions?
Yes, upto Next v11.1.4
The text was updated successfully, but these errors were encountered: