When running gatsby build, I get the following error.
I know how to fix it (e.g. check typedef of window) but I cannot find that window usage? How can I know where is it ? I suspect a node module since I do not have many window references in my own code
Thanks a lot
failed Building static HTML for pages - 10.845s
ERROR #95312
"window" is not available during server side rendering.
See our docs page for more info on this error: https://gatsby.dev/debug-html
WebpackError: ReferenceError: window is not defined
- build-html.js:110 doBuildPages
/[gatsby]/dist/commands/build-html.js:110:24
- build-html.js:124 async buildHTML
/[gatsby]/dist/commands/build-html.js:124:3
- build.js:206 async build
/[gatsby]/dist/commands/build.js:206:5