Reputation: 8578
I'm trying to populate static pages from a react app using react-snap and I keep getting this error on every page.
I don't find anything online on this error, same with "VM1516 integrator.js".
Any idea what's causing this?
Upvotes: 3
Views: 1136
Reputation: 2621
If you add to your package.json file it will stop google adsense/analytics from loading. Warnings about failed network requests will show instead of the error.
"reactSnap": {
"skipThirdPartyRequests": true
}
The other option is you can dynamically load the google script based on the user agent.
if (navigator.userAgent !== "ReactSnap") {
// some code to dynamically load a script
}
Upvotes: 3
Reputation: 3635
It seems you are using Google Analytics and/or Google Adsense scripts.
react-snap executed them locally and put the partial response into the snapshots :(
Upvotes: 1