Troubleshooting Build Error after running npm run build getting blank white screen

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 54

  • @lolpro5922
    @lolpro5922 Рік тому +4

    You bro literally solved the error, i was trying it for whole day 😢❤❤❤ thank you so much

  • @mohammadtalha2002
    @mohammadtalha2002 10 місяців тому +2

    Thanks bro I can,t solve through other method over 5 hours but you give the right solution
    Thanks Buddy

  • @iAwaisAnsari
    @iAwaisAnsari 10 місяців тому +1

    Thanks brooo...It works . Literally I was finding the solution for almost a week

  • @ajayx6045
    @ajayx6045 9 місяців тому +1

    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.

  • @justinlau1918
    @justinlau1918 3 місяці тому

    Thanks a lot man. I finally found a tutorial that really helps. Good Job !

  • @anupamaherath4983
    @anupamaherath4983 8 місяців тому

    very ice tutorial fixed my issue thankyou brother, may god bless you......😍😘

  • @Dp-cu7dl
    @Dp-cu7dl 9 місяців тому +3

    but bro how to deploy in github

  • @ruchirakaluarachchi6707
    @ruchirakaluarachchi6707 11 місяців тому +2

    100% working thanks bro ❤

  • @NasirKhan-z7p
    @NasirKhan-z7p Рік тому +6

    mycase still not working, " npm start " working
    npm run build " White blank Screen "

    • @Meow-fx1ws
      @Meow-fx1ws Рік тому +1

      Same

    • @ossigen8_Shorts-Video
      @ossigen8_Shorts-Video 10 місяців тому +2

      are you using VITE ?

    • @sakilmahmudmolla
      @sakilmahmudmolla 10 місяців тому

      yes, I'm using VITE. still not working@@ossigen8_Shorts-Video

    • @zetxs4l
      @zetxs4l 10 місяців тому +1

      @@ossigen8_Shorts-Videousing vite it shows blank screen , any solution

    • @LePhuocVinhB
      @LePhuocVinhB 9 місяців тому

      we same. Now, have you found the answer yet?@@zetxs4l

  • @gustavoestivalet3453
    @gustavoestivalet3453 14 днів тому

    Thank you man, very usefull!!

  • @ranasagar699
    @ranasagar699 6 місяців тому

    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🥲

  • @virgoshivi
    @virgoshivi 6 місяців тому

    Thank you so much for this video, It worked for me.

  • @kredits8683
    @kredits8683 6 місяців тому

    Thank you brother 💕💕😊

  • @shenelanuththara1106
    @shenelanuththara1106 10 місяців тому +1

    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 ?

    • @Greque7432
      @Greque7432 4 місяці тому

      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.

  • @Sneaky_Raccoon
    @Sneaky_Raccoon 4 місяці тому

    thanks bro. Really helped me

  • @tirthsondagar1646
    @tirthsondagar1646 6 місяців тому +2

    code with harry hena brother keep learning bro..

  • @pravinkumar.r8981
    @pravinkumar.r8981 Рік тому

    Sir image not showing what have to do

  • @tnking3962
    @tnking3962 11 місяців тому +2

    Thank you bro

  • @gistanefalaha2109
    @gistanefalaha2109 6 місяців тому +2

    What about vite users?

    • @safeyamohamed3854
      @safeyamohamed3854 5 місяців тому

      did you get the solution

    • @Greque7432
      @Greque7432 4 місяці тому +2

      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.

  • @luxuriousaffirmations3676
    @luxuriousaffirmations3676 Рік тому +2

    Thanks bro Working fine now

  • @manojkrishna1157
    @manojkrishna1157 2 місяці тому

    How to get *Open with Live Server* option ?

    • @aryansingh502
      @aryansingh502 2 місяці тому +1

      it's an extension, you can get it from the extensions tab in VS Code

  • @Greque7432
    @Greque7432 4 місяці тому

    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.
    */

  • @safeyamohamed3854
    @safeyamohamed3854 5 місяців тому

    thank you, but whey not work with me i use vite

    • @talebkhaddour3927
      @talebkhaddour3927 4 місяці тому

      can you tell me what hapen ? are you solve this probleme?

    • @safeyamohamed3854
      @safeyamohamed3854 4 місяці тому

      ​@@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.

    • @safeyamohamed3854
      @safeyamohamed3854 4 місяці тому

      @@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.

  • @kolavantitejaswi2804
    @kolavantitejaswi2804 3 місяці тому

    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

  • @VersatileTech-m9e
    @VersatileTech-m9e 6 місяців тому

    nahi hua bhai i tried for still same issue

  • @AtulMaurya-ot9ki
    @AtulMaurya-ot9ki 7 місяців тому

    But routing is not working pls help

    • @Outofmatrix457
      @Outofmatrix457 6 місяців тому

      Remove browserrouter with HashRouter and also import it

  • @jzjzjzbz
    @jzjzjzbz 5 місяців тому

    bro it worked

  • @snay6817
    @snay6817 4 місяці тому

    thanks bhai

  • @spider-man150
    @spider-man150 9 місяців тому

    Not solve

  • @BERKO5
    @BERKO5 8 місяців тому

    thanks bro