-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
[Violation] Avoid using document.write() #292
Comments
Hello. Sounds like an issue with your NextJS config somehow. Would you mind making a working codesandbox that replicates the issue so I can take a look? |
Hi @MatthewHerbst , thanks for the reply. This error appear only in production mode, so if i create a codesandbox i can't replicate the problem. Could it be useful to see the NextJS configuration file? |
Maybe though I'm not super familiar with NextJS. Why can't you create the production version in codesandbox? |
I started noticing this after updating Google Chrome Canary to version 88.0.4284.0, while running a CRA app in development mode. I don't believe I'm doing anything unusual, just following the examples quite closely. It even appears in Chrome 88 when running the codesandbox listed in the documentation. The full console message that I receive is as follows:
|
@SteiniDJ thanks for that. Not sure why it's complaining for us since
I'll look at ways to mitigate and report back |
Removed |
I have this situation in my NextJS project:
When I click on the button the print prompt doesn't appear and the console get me the follow warning:
[Violation] Avoid using document.write()
In NextJS development mode work well but in production the button have this problem. Could someone explain me why?
The text was updated successfully, but these errors were encountered: