Comments (6)
@WillGarman See above...
Netlify wasn't able to publish the build with podcast page, can you take a look at this?
from ainc-gatsby-sanity.
Got it will look now
from ainc-gatsby-sanity.
I've made some progress but I'm still getting an error. It looks like the
The error: WebpackError: document is not defined
was being approached in the wrong way I think. According to Gatsby docs, it says:
To fix this, find the offending code and either
check before calling the code if window is defined so the code doesn’t run while Gatsby is building (see code sample below) or
if the code is in the render function of a React.js component, move that code into componentDidMount which ensures the code doesn’t run unless it’s in the browser.
The offending code is in components/Podcast/Podcast.js
since that is where we create a document. So I changed that code here: #10
Take a look at that and try to pull it and see if you get anywhere with the error I'm getting.
from ainc-gatsby-sanity.
LOG:
gitpod /workspace/ainc-gatsby-sanity/web (podcast-hotfix) $ gatsby build
success compile gatsby files - 1.554s
success load gatsby config - 0.034s
success load plugins - 0.646s
warn gatsby-plugin-react-helmet: Gatsby now has built-in support for modyfing the document head. Learn more at https://gatsby.dev/gatsby-head
success onPreInit - 0.006s
success delete worker cache from previous builds - 0.004s
info [sanity] Fetching remote GraphQL schema
info [sanity] Transforming to Gatsby-compatible GraphQL SDL
info [sanity] Stitching GraphQL schemas from SDL
success initialize cache - 0.559s
success copy gatsby files - 0.181s
success Compiling Gatsby Functions - 0.233s
success onPreBootstrap - 0.246s
success createSchemaCustomization - 0.011s
info [sanity] 0 documents updated.
success Checking for changed pages - 0.001s
success source and transform nodes - 4.200s
info Writing GraphQL type definitions to /workspace/ainc-gatsby-sanity/web/.cache/schema.gql
success building schema - 1.346s
info [sanity] Fetching remote GraphQL schema
info [sanity] Fetching remote GraphQL schema
info [sanity] Fetching remote GraphQL schema
success createPages - 0.108s
info [sanity] Fetching remote GraphQL schema
info [sanity] Fetching remote GraphQL schema
info [sanity] Fetching remote GraphQL schema
info [sanity] Fetching remote GraphQL schema
success createPagesStatefully - 0.107s
info Total nodes: 718, SitePage nodes: 26 (use --verbose for breakdown)
success Checking for changed pages - 0.001s
success Cleaning up stale page-data - 0.002s
success onPreExtractQueries - 0.001s
info [sanity] Transforming to Gatsby-compatible GraphQL SDL
info [sanity] Stitching GraphQL schemas from SDL
info [sanity] Transforming to Gatsby-compatible GraphQL SDL
info [sanity] Stitching GraphQL schemas from SDL
info [sanity] Transforming to Gatsby-compatible GraphQL SDL
info [sanity] Stitching GraphQL schemas from SDL
info [sanity] Transforming to Gatsby-compatible GraphQL SDL
info [sanity] Stitching GraphQL schemas from SDL
info [sanity] Transforming to Gatsby-compatible GraphQL SDL
info [sanity] Stitching GraphQL schemas from SDL
info [sanity] Transforming to Gatsby-compatible GraphQL SDL
info [sanity] Stitching GraphQL schemas from SDL
info [sanity] Transforming to Gatsby-compatible GraphQL SDL
info [sanity] Stitching GraphQL schemas from SDL
ERROR #85911 GRAPHQL
There was a problem parsing "undefined"; any GraphQL
fragments or queries in this file were not processed.
This may indicate a syntax error in the code, or it may be a file type
that Gatsby does not know how to parse.
File: src/components/Podcast/Podcast.js
failed extract queries from components - 3.211s
I think I am getting very close I am running into this error on running gatsby build
, I feel like there may be something simple I either need to figure out.
Here are some things I have referenced in relation to my error but they aren't much help #36472 #34857
from ainc-gatsby-sanity.
Also, I thought I was doing super well for the past coupe hours. But it turns out I just did a big loop all the way back to the same error 😞
from ainc-gatsby-sanity.
Finished: #11
from ainc-gatsby-sanity.
Related Issues (20)
- Bootcamp Redesign (Colin) HOT 1
- Bootcamp Redesign Testimonials
- All Mobile Bug Fixes HOT 1
- Bootcamp specific mobile bug fixes HOT 1
- workspace buttons
- Apply button on lg screen
- Modals on AppleOS
- Mobile UI/UX Changes HOT 2
- Q2 Website Updates
- Q2 Website Updates
- Bootcamp Calendly mobile issue
- Clean up Sanity
- /woc page
- blog page overflow
- fellowship page updates
- Sticky toolbar for blog editing
- make it easier to insert photos into blogs
- Remove events after date passed
- Fix size of image on Idea page
- Order of Team members on about page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ainc-gatsby-sanity.