gatsby-storyblok-boilerplate icon indicating copy to clipboard operation
gatsby-storyblok-boilerplate copied to clipboard

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

Open liongkj opened this issue 5 years ago • 1 comments

I was walking through the tutorial and met this error. At first i thought i copied the code wrongly. I cloned the whole project, change the preview key and run 'gatsby develop' but end up seeing this error. What could be possible wrong? image

liongkj avatar Mar 07 '19 12:03 liongkj

It's something that should be fixed yea, odd how it's the cache that complains on an app file that aint in src. I got the same error, and really, it's easier to just go step by step using https://www.storyblok.com/tp/gatsby-multilanguage-website-tutorial instead of going for the "finished" github. And make sure to start with having an unmodified 'project' in storyblok, cause I had issues using one that I had poked around in.

This is how my folder looked after follow the above tutorial image (whereof green = new files). Structure wise, as in, what I've removed and left from gatsby default starter is just do a comparison to https://github.com/gatsbyjs/gatsby-starter-default/tree/master/src

MerApelsin avatar Apr 10 '19 08:04 MerApelsin