** UPDATE! ** #1 Make sure all paths in your projects are relative to the scope of src, use e.g: "../../". Don't use a longer path that includes your own computer, e.g: "C:\Users\Username\Documents\Project" - that's outside of Netlify's scope. #2 In Deploy Settings, make sure these configs are set based on the package management chosen for your project: NPM Build command: CI=false yarn build Publish directory: build/ YARN Build command: CI=false npm run build Publish directory: build/ ** CI=true will treat any warning from your project as an error, that's why we use CI=false.
i am still facing same error tried a lot of things. 9:27:45 PM: Creating deploy upload records 9:27:45 PM: Failing build: Failed to build site 9:27:45 PM: Failed during stage 'building site': Deploy directory 'build' does not exist
Best approach ever after years of trying lol. Thanks man.
Really glad to hear that, Jonathan! 👊👊
You just solved my problem within two minute. Thanks man
Great that I could help you 😉
thank you, i've been up for ages tryna figure this out!!!
Awesome!
Thanks Victor, It works
Glad to hear that, Vishv!
My man. Good lookin out. And nice guitar 🤙🏻
Heya! Hope it works for you. And thanks, it's indeed a nice guitar.
** UPDATE! **
#1 Make sure all paths in your projects are relative to the scope of src, use e.g: "../../". Don't use a longer path that includes your own computer, e.g: "C:\Users\Username\Documents\Project" - that's outside of Netlify's scope.
#2 In Deploy Settings, make sure these configs are set based on the package management chosen for your project:
NPM
Build command: CI=false yarn build
Publish directory: build/
YARN
Build command: CI=false npm run build
Publish directory: build/
** CI=true will treat any warning from your project as an error, that's why we use CI=false.
Thank you for the workaround !
You're welcome!
Thank you so much bro for making this video ❤️
Cheers, Tausif!
it works for me! thank you so much bro😭
you saved my life!
I love you!
Oh, thank you Satan! Haha
Legend! Thank you so much!
Cheers, Nachozz!
It works! amazing!
Great! Happy for that
Thanks! It helped a lot!
Glad it worked for you 👊🏻
i am still facing same error tried a lot of things.
9:27:45 PM: Creating deploy upload records
9:27:45 PM: Failing build: Failed to build site
9:27:45 PM: Failed during stage 'building site': Deploy directory 'build' does not exist
You need to commit yout build folder to your repo. Comment it in the .gitignore file
i have solution: open package.json and change build for it ---> "build": "CI= react-scripts build". this work for me
ps: sorry by my english
@@larbizard what do you mean bro
@@cryptocrazeee4672 it's not a good practice but it was the solution I used at the moment. You need to push the build folder to your repository
@@larbizard i did this and it worked. build error is gone. thank u
Thanks for sharing
Cheers Paul! Hope it's helpfull
thanks!
Cheers!
worked welll..thanks
a humble liar
easy and amazing stupid fix jajaja
very bad