Im trying to deploy my site in netlify from Github, the deployment attempt fails with this following message
“Deploy did not succeed: Deploy directory ‘dist’ does not exist”
whats the dist directory and how i can generate it? or how i can solve this problem.
It expects there to be a directory called “dist” that has the code you have built/want to deploy in it. So whatever you have told your scripts to do possibly does not involve telling them to build to that directory.
You’re outputting the css to a directory called CSS, I assume it needs to be dist/CSS/. And the rest of your code needs to be built to there as well, else netlify will just deploy a folder with some CSS
I have some old tutorial sites on GitHub using Netlify and they work without a build directory. With SCSS and a package.json that looks a lot like yours. When I look at the build settings they are all empty (Base directory, Build command, Publish directory). As far as I know, they still build correctly.