Closed varmab closed 5 years ago
gatsby build showing error like below
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/xxxxx/xxxxxx/node_modules/gatsby-plugin-offline/app-shell.js
⠋ createPages
Let me know what is the problem here. I didn't make any changes except
npm install
gatsby develop (works fine)
gatsby build (showing error above)
It seems problem is my npm version after some research. Now after upgrading npm, Problem is gone.
gatsby build showing error like below
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/xxxxx/xxxxxx/node_modules/gatsby-plugin-offline/app-shell.js
⠋ createPages
Let me know what is the problem here. I didn't make any changes except
npm install
gatsby develop (works fine)
gatsby build (showing error above)