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

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024
  • In this video, I address a common error I encountered while trying to open my app using the build feature. I demonstrate the issue and explain how to fix it by modifying the package.json file. By following my instructions, you will be able to successfully run the build and host your app correctly.
    #react
    #react js
    #javascript errors
    #subscribe

ความคิดเห็น • 50

  • @ajayx6045
    @ajayx6045 6 หลายเดือนก่อน +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.

  • @Dp-cu7dl
    @Dp-cu7dl 6 หลายเดือนก่อน +3

    but bro how to deploy in github

  • @lolpro5922
    @lolpro5922 10 หลายเดือนก่อน +4

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

  • @NasirKhan-z7p
    @NasirKhan-z7p 10 หลายเดือนก่อน +5

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

    • @Meow-fx1ws
      @Meow-fx1ws 10 หลายเดือนก่อน +1

      Same

    • @ossigen8_Shorts-Video
      @ossigen8_Shorts-Video 7 หลายเดือนก่อน +1

      are you using VITE ?

    • @sakilmahmudmolla
      @sakilmahmudmolla 7 หลายเดือนก่อน

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

    • @zetxs4l
      @zetxs4l 7 หลายเดือนก่อน +1

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

    • @LePhuocVinhB
      @LePhuocVinhB 6 หลายเดือนก่อน

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

  • @shenelanuththara1106
    @shenelanuththara1106 7 หลายเดือนก่อน +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 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.

  • @iAwaisAnsari
    @iAwaisAnsari 7 หลายเดือนก่อน +1

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

  • @mohammadtalha2002
    @mohammadtalha2002 7 หลายเดือนก่อน +1

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

  • @justinlau1918
    @justinlau1918 16 วันที่ผ่านมา

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

  • @ranasagar699
    @ranasagar699 3 หลายเดือนก่อน

    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🥲

  • @manojkrishna1157
    @manojkrishna1157 5 วันที่ผ่านมา

    How to get *Open with Live Server* option ?

  • @ruchirakaluarachchi6707
    @ruchirakaluarachchi6707 8 หลายเดือนก่อน +2

    100% working thanks bro ❤

    • @spider-man150
      @spider-man150 6 หลายเดือนก่อน

      not working in my system

  • @gistanefalaha2109
    @gistanefalaha2109 4 หลายเดือนก่อน +2

    What about vite users?

    • @safeyamohamed3854
      @safeyamohamed3854 2 หลายเดือนก่อน

      did you get the solution

    • @Greque7432
      @Greque7432 2 หลายเดือนก่อน +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.

  • @kolavantitejaswi2804
    @kolavantitejaswi2804 13 วันที่ผ่านมา

    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

  • @pravinkumar.r8981
    @pravinkumar.r8981 11 หลายเดือนก่อน

    Sir image not showing what have to do

  • @anupamaherath4983
    @anupamaherath4983 5 หลายเดือนก่อน

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

  • @virgoshivi
    @virgoshivi 3 หลายเดือนก่อน

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

  • @tnking3962
    @tnking3962 8 หลายเดือนก่อน +2

    Thank you bro

  • @tirthsondagar1646
    @tirthsondagar1646 4 หลายเดือนก่อน +2

    code with harry hena brother keep learning bro..

  • @VersatileTech-m9e
    @VersatileTech-m9e 3 หลายเดือนก่อน

    nahi hua bhai i tried for still same issue

  • @AtulMaurya-ot9ki
    @AtulMaurya-ot9ki 5 หลายเดือนก่อน

    But routing is not working pls help

    • @Outofmatrix457
      @Outofmatrix457 4 หลายเดือนก่อน

      Remove browserrouter with HashRouter and also import it

  • @luxuriousaffirmations3676
    @luxuriousaffirmations3676 9 หลายเดือนก่อน +2

    Thanks bro Working fine now

  • @disorder4532
    @disorder4532 หลายเดือนก่อน

    thanks bro. Really helped me

  • @safeyamohamed3854
    @safeyamohamed3854 2 หลายเดือนก่อน

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

    • @talebkhaddour3927
      @talebkhaddour3927 2 หลายเดือนก่อน

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

    • @safeyamohamed3854
      @safeyamohamed3854 2 หลายเดือนก่อน

      ​@@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 2 หลายเดือนก่อน

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

  • @jzjzjzbz
    @jzjzjzbz 2 หลายเดือนก่อน

    bro it worked

  • @kredits8683
    @kredits8683 3 หลายเดือนก่อน

    Thank you brother 💕💕😊

  • @Greque7432
    @Greque7432 2 หลายเดือนก่อน

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

    • @sasankdharmavarapu8796
      @sasankdharmavarapu8796 หลายเดือนก่อน

      hi i have updated my vite config file i am still facing the same issue

    • @abhisheknigam7390
      @abhisheknigam7390 7 วันที่ผ่านมา

      Thanks a lot brother. It worked❤

  • @spider-man150
    @spider-man150 6 หลายเดือนก่อน

    Not solve

  • @snay6817
    @snay6817 2 หลายเดือนก่อน

    thanks bhai

  • @BERKO5
    @BERKO5 6 หลายเดือนก่อน

    thanks bro