scttcper / gatsby-theme-casper

https://gatsby-casper-theme.netlify.com/
MIT License
17 stars 5 forks source link

Failure on config Gatsby Themes Shadowing #10

Closed xqdd closed 4 years ago

xqdd commented 4 years ago

I follow this guide

https://www.gatsbyjs.org/docs/themes/shadowing/

My code

image

Error log

root.js:75 Uncaught TypeError: Cannot read property 'page' of undefined
    at Object.eval [as children] (root.js:75)
    at EnsureResources.render (ensure-resources.js:77)
    at finishClassComponent (react-dom.development.js:18470)
    at updateClassComponent (react-dom.development.js:18423)
    at beginWork$1 (react-dom.development.js:20186)
    at HTMLUnknownElement.callCallback (react-dom.development.js:336)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:385)
    at invokeGuardedCallback (react-dom.development.js:440)
    at beginWork$$1 (react-dom.development.js:25780)
    at performUnitOfWork (react-dom.development.js:24695)
    at workLoopSync (react-dom.development.js:24671)
    at performSyncWorkOnRoot (react-dom.development.js:24270)
    at scheduleUpdateOnFiber (react-dom.development.js:23698)
    at updateContainer (react-dom.development.js:27103)
    at eval (react-dom.development.js:27528)
    at unbatchedUpdates (react-dom.development.js:24433)
    at legacyRenderSubtreeIntoContainer (react-dom.development.js:27527)
    at render (react-dom.development.js:27608)
    at eval (app.js:67)

image

Found something seem relative

https://github.com/gatsbyjs/gatsby/issues/17695#issuecomment-575958750

xqdd commented 4 years ago

My mistake, the old node processes didn't kill cleanly