We are encountering this warning when we run our meteor app with non-minified bundle.
The warning shows that the iframe tag on client side shows extra line breaks as compared to server side.
Below is the warning we are seeing:
Warning: Prop dangerouslySetInnerHTML did not match. Server: "<iframe src=\"//www.googletagmanager.com/ns.html?id=GTM-XXXXXX\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\">" Client: "\n <iframe src=\"//www.googletagmanager.com/ns.html?id=GTM-XXXXXX\"\n height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\">"
I think this probably happening due to the line breaks within template literals as they get preserved in code here. Can possibly use a backslash (\) in that case.
These warnings are being shown on new env that we are setting up:
Meteor 1.7.0.1
Node 8.11.2
React 16.4.0
The warning was not fired when we running on this env:
We are encountering this warning when we run our meteor app with non-minified bundle. The warning shows that the iframe tag on client side shows extra line breaks as compared to server side.
Below is the warning we are seeing:
I think this probably happening due to the line breaks within template literals as they get preserved in code here. Can possibly use a backslash (\) in that case.
These warnings are being shown on new env that we are setting up:
The warning was not fired when we running on this env:
Can you please help?
Thanks.