UncaughtTypeError: react dom WEBPACK IMPORTED MODULE | White blank screen SOLVED in React JS

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024
  • How to solve Uncaught TypeError: react_dom__WEBPACK_IMPORTED_MODULE_1__.createRoot is not a function at ./src/index.js (index.js:7:1) at options.factory (react refresh:6:1) at _webpack_require_ (bootstrap:24:1) at startup:7:1 in react js is shown

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

  • @divyanshusahu6111
    @divyanshusahu6111 ปีที่แล้ว +2

    Thanks bro... You solved my problem 🙌🥺 that thing wasted my 2-3 days

  • @KritagyaChouhan
    @KritagyaChouhan ปีที่แล้ว +1

    i am still getting the same error and the screen is white yet

    • @unitedtoptech6288
      @unitedtoptech6288  ปีที่แล้ว

      Are you trying to downgrade to react 17 from 18?

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

    Pls,describe that why the previous code didn't work

    • @unitedtoptech6288
      @unitedtoptech6288  5 หลายเดือนก่อน +1

      because the react versions are different, so the code has to be changed

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

    Didnt work for me. my react and dom version is 18.3.1

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

      I have converted react js to 17, what are you trying to do?

  • @z-anon
    @z-anon 11 หลายเดือนก่อน

    Solved! Thank you!

  • @uliseshumbertosaucedacordo874
    @uliseshumbertosaucedacordo874 ปีที่แล้ว

    did you just downgraded??

    • @unitedtoptech6288
      @unitedtoptech6288  ปีที่แล้ว

      Yeah from 18 to 17

    • @uliseshumbertosaucedacordo874
      @uliseshumbertosaucedacordo874 ปีที่แล้ว

      @@unitedtoptech6288 most of my project is written with V18. I understand that I'm gonna have to rewrite some stuff for it to work as I want it to
      Am I gonna miss important features ?
      I'm a beginner

    • @unitedtoptech6288
      @unitedtoptech6288  ปีที่แล้ว

      17 and 18 have similar code and most of the dependency packages work without any code change

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

      @@uliseshumbertosaucedacordo874 You can upgrade your react by changing your package.json to require react and react-dom to be "^18.0.0" then run "npm install" from your command line in your project directory and rebuild your app. See his screenshot at 0:35 where he requires only react 17.0.2

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

    Thankyou man god bless you

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

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

    its already 2024

  • @chandrakantkamble3371
    @chandrakantkamble3371 ปีที่แล้ว

    ❤❤❤❤