chetanverma16 / react-portfolio-template

Modern React Portfolio Template (FREE)
https://react-portfolio-template.netlify.com/
1.34k stars 586 forks source link

no build folder created after npm run build #27

Closed mahmoud305 closed 2 years ago

mahmoud305 commented 2 years ago

when i run npm run build it executes successfully but no build folder created error the screenshot for executing npm run deploy command.

i want to deploy the portfolio to git hub pages but that what happen (no build folder generated ) link for the compressed code [code] (https://www.mediafire.com/file/qzl4rb68tj53qa6/react-portfolio-template-master.rar/file)

ArjunaAcchaDipa commented 2 years ago

Hey, I'm facing the same problem yesterday. But you can take a look at this youtube video to solve it. The reason why npm run deploy command doesn't work is because the code is using Gatsby and to host it, it needs some settings.

caramelmelmel commented 2 years ago

yes! what i did was to write a gatsby config command like a bash script to deploy! Inside package.json,

"scripts": { "deploy": "gatsby build --prefix-paths && gh-pages -d public", .... } then npm run deploy on terminal this applies to the .github.io main domain