3

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?

processGoogleToken error

bArmageddon
  • 8,088
  • 6
  • 22
  • 40

2 Answers2

3

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
  }
keza
  • 2,601
  • 2
  • 16
  • 10
1

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 :(

KARPOLAN
  • 2,507
  • 1
  • 19
  • 10