Closed mitchuman closed 1 year ago
Similar issue with Gatsby. Looks like it is not ready for Gatsby 5, but also getting this error with "gatsby": "^4.0.2". I tried both with the results
"gatsby-source-storyblok" threw an error while running the sourceNodes lifecycle:
{ "name": "hotel-laguna", "version": "1.0.0", "private": true, "description": "Hotel Laguna", "author": "jeff clark", "keywords": [ "gatsby" ], "scripts": { "develop": "gatsby develop", "start": "gatsby develop", "build": "gatsby build", "serve": "gatsby serve", "clean": "gatsby clean" }, "dependencies": { "bootstrap": "^5.1.3", "gatsby": "^4.0.2", "gatsby-plugin-anchor-links": "^1.2.1", "gatsby-plugin-image": "^2.1.0", "gatsby-plugin-mailchimp": "^5.2.2", "gatsby-plugin-react-helmet": "^5.1.0", "gatsby-plugin-sharp": "^4.1.0", "gatsby-plugin-smoothscroll": "^1.2.0", "gatsby-source-filesystem": "^4.1.0", "gatsby-source-storyblok": "^5.0.0", "gatsby-transformer-sharp": "^4.1.0", "react": "^17.0.1", "react-bootstrap": "^2.0.1", "react-dom": "^17.0.1", "react-helmet": "^6.1.0", "swiper": "^7.2.0" } }
module.exports = { siteMetadata: { siteUrl: "https://www.yourdomain.tld", title: "Some Site", }, plugins: [ "gatsby-plugin-image", "gatsby-plugin-react-helmet", "gatsby-plugin-sharp", { resolve: "gatsby-plugin-anchor-links", options: { offset: -116, duration: 700, } }, "gatsby-transformer-sharp", { resolve: "gatsby-source-filesystem", options: { name: "images", path: "./src/images/", }, __key: "images", }, { resolve: "gatsby-source-storyblok", options: { accessToken: "token here", version: "draft", localAssets: true, // Optional parameter to download the images to use with Gatsby Image Plugin // languages: ['de', 'at'] // Optional parameter. Omission will retrieve all languages by default. }, }, ], };
@mitchuman @jclark-vanish Could you try with an updated version of our gatsby-source-storyblok which supports Gatsby 5?
From v6.1.0, it supports Gatsby 5. Let us know if you still have the same/another issue.
On a clean install of Gatsby v5.5.0 and only the
gatsby-source-storyblok
plugin installed, I get a console error saying"message" is not allowed
.No pages are setup, just added in
gatsby-config.js
and the issue occurs.Expected Behavior
At least have the local server and the GraphQL server up and running.
Current Behavior
Only addition to
gatsby-config.js
is the following:Output:
Steps to Reproduce
package.json
gatsby-source-stroyblok
gatsby-config.js
settingsyarn develop
ornpm run develop