Bro, i clone my project from github to vscode and when i run the project by npm start , it show blank page (localhost:3000). But when i runs same project on other port (localhost:3001) it runs. Is my problem same to your problem???? I also clone other repositories but they works fine.
i am using vue3 with vite, while build it getting same issue and implement this solution in there. but it did not work,Can you give a solution for that ?
Put this code inside of your `vite.config.js` in `export default defineConfig({})`: base: './', // Re-run `npm run build` on your terminal, and this will be fixed. Now you can publish this.
Put this code inside of your `vite.config.js` in `export default defineConfig({})`: base: './', // Re-run `npm run build` on your terminal, and this will be fixed. Now you can publish this.
Hi devs. If you're using react.js, put this code inside of your `vite.config.js` in `export default defineConfig({})`: base: './', /* Re-run `npm run build` on your terminal, and this will be fixed. Now you can publish this. `Daljeet Singh`, can you pin my comment? I think that it will help these users that yet having this problem. */
i have changed the path but still getting this error in staging platform.but production is not going in chunk. #15 42.51 344.87 KB build/static/js/2.fc43a14a.chunk.js #15 42.51 13.49 KB build/static/js/main.5bcf156c.chunk.js #15 42.51 3.41 KB build/static/css/main.ba53bf18.chunk.css #15 42.51 2.22 KB build/static/css/2.af4a3662.chunk.css #15 42.51 796 B build/static/js/runtime-main.ed72fef9.js it is staging deployment logs🥲
@@talebkhaddour3927 Deploy project to github pages and you use react routing using "BrowserRouter" You will definitely get this error when you reload the page There is no solution that I have not tried. The only solution that worked was to use "HashRouter" and base:"/repoName/" in vite.config Deploy the same project to vercel using "BrowserRouter" with base: "./" added in vite.config.js and don't forget to add vercel.json file, it will work fine.
@@talebkhaddour3927 Deploy project to github pages and you use react routing using "BrowserRouter" You will definitely get this error when you reload the page There is no solution that I have not tried. The only solution that worked was to use "HashRouter" and base:"/repoName/" in vite.config Deploy the same project to vercel using "BrowserRouter" with base: "./" added in vite.config.js and don't forget to add vercel.json file, it will work fine.
i am deploying my website in firebase here the build folder created but inside it no staic folder created and getting this errorstatic/css/main.8f6e867d.css from Css Minimizer plugin Error: Unexpected '/'. Escaping special characters with \ may help.plss help me out
You bro literally solved the error, i was trying it for whole day 😢❤❤❤ thank you so much
Thanks bro I can,t solve through other method over 5 hours but you give the right solution
Thanks Buddy
Thanks brooo...It works . Literally I was finding the solution for almost a week
but bro how to deploy in github
Thanks a lot man. I finally found a tutorial that really helps. Good Job !
Bro, i clone my project from github to vscode and when i run the project by npm start , it show blank page (localhost:3000). But when i runs same project on other port (localhost:3001) it runs. Is my problem same to your problem???? I also clone other repositories but they works fine.
code with harry hena brother keep learning bro..
he s a guru
very ice tutorial fixed my issue thankyou brother, may god bless you......😍😘
100% working thanks bro ❤
not working in my system
mycase still not working, " npm start " working
npm run build " White blank Screen "
Same
are you using VITE ?
yes, I'm using VITE. still not working@@ossigen8_Shorts-Video
@@ossigen8_Shorts-Videousing vite it shows blank screen , any solution
we same. Now, have you found the answer yet?@@zetxs4l
i am using vue3 with vite, while build it getting same issue and implement this solution in there. but it did not work,Can you give a solution for that ?
Put this code inside of your `vite.config.js` in `export default defineConfig({})`:
base: './',
// Re-run `npm run build` on your terminal, and this will be fixed. Now you can publish this.
What about vite users?
did you get the solution
Put this code inside of your `vite.config.js` in `export default defineConfig({})`:
base: './',
// Re-run `npm run build` on your terminal, and this will be fixed. Now you can publish this.
Thank you so much for this video, It worked for me.
Hi devs. If you're using react.js, put this code inside of your `vite.config.js` in `export default defineConfig({})`:
base: './',
/*
Re-run `npm run build` on your terminal, and this will be fixed. Now you can publish this.
`Daljeet Singh`, can you pin my comment? I think that it will help these users that yet having this problem.
*/
hi i have updated my vite config file i am still facing the same issue
Thanks a lot brother. It worked❤
Sir image not showing what have to do
How to get *Open with Live Server* option ?
it's an extension, you can get it from the extensions tab in VS Code
i have changed the path but still getting this error in staging platform.but production is not going in chunk.
#15 42.51 344.87 KB build/static/js/2.fc43a14a.chunk.js
#15 42.51 13.49 KB build/static/js/main.5bcf156c.chunk.js
#15 42.51 3.41 KB build/static/css/main.ba53bf18.chunk.css
#15 42.51 2.22 KB build/static/css/2.af4a3662.chunk.css
#15 42.51 796 B build/static/js/runtime-main.ed72fef9.js
it is staging deployment logs🥲
Thank you bro
thanks bro. Really helped me
nahi hua bhai i tried for still same issue
Thank you brother 💕💕😊
But routing is not working pls help
Remove browserrouter with HashRouter and also import it
thank you, but whey not work with me i use vite
can you tell me what hapen ? are you solve this probleme?
@@talebkhaddour3927
Deploy project to github pages and you use react routing using "BrowserRouter" You will definitely get this error when you reload the page
There is no solution that I have not tried.
The only solution that worked was to use "HashRouter" and base:"/repoName/" in vite.config
Deploy the same project to vercel using "BrowserRouter" with base: "./" added in vite.config.js and don't forget to add vercel.json file, it will work fine.
@@talebkhaddour3927 Deploy project to github pages and you use react routing using "BrowserRouter" You will definitely get this error when you reload the page
There is no solution that I have not tried.
The only solution that worked was to use "HashRouter" and base:"/repoName/" in vite.config
Deploy the same project to vercel using "BrowserRouter" with base: "./" added in vite.config.js and don't forget to add vercel.json file, it will work fine.
i am deploying my website in firebase here the build folder created but inside it no staic folder created and getting this errorstatic/css/main.8f6e867d.css from Css Minimizer plugin
Error: Unexpected '/'. Escaping special characters with \ may help.plss help me out
Thanks bro Working fine now
Not solve
thanks bhai
bro it worked
thanks bro