fabien0102 / gatsby-starter

Gatsby 2.0 starter with typescript and many cools dev tools
386 stars 97 forks source link

Error: Unable to find plugin "gatsby-remark-images" #45

Open FDiskas opened 6 years ago

FDiskas commented 6 years ago
  1. npm i
  2. npm start
  3. Error: Unable to find plugin "gatsby-remark-images"
fabien0102 commented 6 years ago

mmm… interresting, can I have more information on your system? (os, node version) can you check if you have really gatsby-remark-images into your node_modules? (I will need your help, I don't have personnally this issue on my computer :wink: )

FDiskas commented 6 years ago

OS: ubuntu NPM: 5 Node: 8

FDiskas commented 6 years ago

Ok tried from scratch again and it's worked now. But yarn serve does not. Instead I got screenshot Yes i did build before serve

FDiskas commented 6 years ago

Oh sorry you missing that script in package please add

"preserve": "npm run build",
"serve": "gatsby serve",
fabien0102 commented 6 years ago

Since I have the netlify hook to check the real build, I don't really need to have a serve script :wink: but it's a good idea for this starter 👍

FDiskas commented 6 years ago

Does netlify supports server side rendering? How can i set it up?

fabien0102 commented 6 years ago

Netlify build and serve your static files, gatsby do the "server side rendering" on the build, so it's fit perfectly :wink:

Just go on netlify, the documentation is quite good, after you can add some github hooks to generate this kind of build/message (https://github.com/fabien0102/gatsby-starter/pull/41#issuecomment-350590144) :wink: And also build on every branch modifications or custom hook. So you have your entire CI / hosting solution just with github and netlify.