You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error Building static HTML failed
15 | * True if the custom elements polyfill is in use.
16 | */
> 17 | export const isCEPolyfill = window.customElements !== undefined &&
| ^
18 | window.customElements.polyfillWrapFlushCallback !==
19 | undefined;
20 | /**
WebpackError: ReferenceError: window is not defined
I have little experience with Gatsby/react in general. But I suspect this has something to do with the webpack tooling setup as you suggested.
WIll look more into this eventually
Running
gatsby build
gives the following error:A temporary solution is to configure gatsby-node.js (as per https://www.gatsbyjs.org/docs/debugging-html-builds/#fixing-third-party-modules) as so:
Refer to gatsbyjs/gatsby#309 for a more permanent solution.
The text was updated successfully, but these errors were encountered: