Page JS doesn鈥檛 load when @reek鈥檚 Anti-Adblock Killer is active.
Page loads properly, with no errors
In the console:
Uncaught TypeError: Cannot read property 'jsonName' of null
at Module.<anonymous> (production-app.js:24)
at f (bootstrap:88)
at n (bootstrap:45)
at Array.t [as push] (bootstrap:32)
at app-be443b93f2db31c545e1.js:1
System:
OS: macOS High Sierra 10.13.2
CPU: (8) x64 Intel(R) Core(TM) i7-5775R CPU @ 3.30GHz
Shell: Unknown
Binaries:
Node: 11.4.0 - /tmp/yarn--1546260296187-0.5143982055592193/node
Yarn: 1.12.3 - /tmp/yarn--1546260296187-0.5143982055592193/yarn
npm: 6.5.0 - ~/.nvm/versions/node/v11.4.0/bin/npm
Languages:
Python: 2.7.11 - /usr/local/bin/python
Browsers:
Chrome: 71.0.3578.98
Firefox: 54.0
Safari: 11.0.2
npmPackages:
gatsby: ^2.0.76 => 2.0.78
gatsby-image: ^2.0.20 => 2.0.25
gatsby-plugin-manifest: ^2.0.9 => 2.0.13
gatsby-plugin-offline: ^2.0.16 => 2.0.20
gatsby-plugin-react-helmet: ^3.0.2 => 3.0.5
gatsby-plugin-sharp: ^2.0.14 => 2.0.17
gatsby-plugin-typescript: ^2.0.3 => 2.0.3
gatsby-plugin-typescript-checker: ^1.0.3 => 1.0.3
gatsby-plugin-web-font-loader: ^1.0.4 => 1.0.4
gatsby-source-filesystem: ^2.0.8 => 2.0.12
gatsby-transformer-sharp: ^2.1.8 => 2.1.9
It seems that window.page is being unset, although using Object.defineProperty to report when it鈥檚 set produces no results.
I fixed the issue by disabling Anti-Adblock Killer.
did you found an other way to fix it ?
It was finally enough to update Gatsby so that the error does not happen anymore
Most helpful comment
It was finally enough to update Gatsby so that the error does not happen anymore