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
I started with 'gatsby new' command building a gatsby site, and added a framer component to index.js just like:
importReactfrom"react"import{Link}from"gatsby"importLayoutfrom"../components/layout"importImagefrom"../components/image"importSEOfrom"../components/seo"import{Frame}from'framer';constIndexPage=()=>(<Layout><SEOtitle="Home"/><Frame>
Test
</Frame></Layout>)exportdefaultIndexPage
After executed 'gatsby build', this error occured.
WebpackError: ReferenceError: window is not defined
I started with 'gatsby new' command building a gatsby site, and added a framer component to index.js just like:
After executed 'gatsby build', this error occured.
I could not fix this by solutions in the official doc (https://www.gatsbyjs.org/docs/debugging-html-builds/).
Anyone can help?
The text was updated successfully, but these errors were encountered: