Ask questionsgatsby build error #11328 A page component must export a React component for it to be valid. Please make sure this file exports a React component: /Users/tiagosanchez/Documents/Projects/personalBlog/node_modules/gatsby-plugin-offline/app-shell.js
I run gatsby build on CLI for my blog (I am using gatsby-theme-blog and you can find it in the following link, the repo for my blog.
This was done following your tutorial link to prepare your site to be publish. The fist time I did it, it did run well, however after running the audit with Lighthouse and going through adding manifest and all the other good stuff, it is not working.
I have the following error on my console
ERROR #11328
A page component must export a React component for it to be valid. Please make sure this file exports a React component:
/Users/tiagosanchez/Documents/Projects/personalBlog/node_modules/gatsby-plugin-offline/app-shell.js
If I go a couple of commits back (cf09d3e986c4b01efc0941d5192c7fd47d4be24e) to this one I am able to run gatsby build.
After further testing I notice that gatsby-plugin-offlineis the cause of the issue, not sure why that is the case.
Could you please point me in the right direction?
Answer questions
dkthehuman
Running npm upgrade fixed it for me, too. Thanks @davidbailey00!
Related questions