WebCu / gatsby-material-kit-react

Adapt Material Kit React to Gatsby
MIT License
84 stars 36 forks source link

gatsby build is failing #19

Closed varmab closed 5 years ago

varmab commented 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)

varmab commented 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.