React Invalid Hook Calls

Поділитися
Вставка
  • Опубліковано 1 гру 2024

КОМЕНТАРІ • 17

  • @merefield2585
    @merefield2585 16 днів тому +1

    This video really helped me, thanks for taking the time to make it. In my case it turned out that I was using a stale version of the library somehow, so my updates hadn't been incorporated into the web app, which is ultimately why it wasn't working. I changed the version number and noticed it wasn't increased in the node_modules folder. Going through your video helped me work that out. I liked your novel approach for checking the export matched.

  • @uliseshumbertosaucedacordo874
    @uliseshumbertosaucedacordo874 Рік тому +5

    i did not understand where should i use npm link

  • @a7x8f3
    @a7x8f3 Рік тому +1

    Thanks for posting this, I had spent about 3 hours trying to solve this exact issue!

  • @dreadhalor
    @dreadhalor Рік тому +1

    Yep, this solved the problem. I’m presenting the component library in 2 days & I‘ve been at my wit’s end I tell ya, you’ve saved my hide here buddy

  • @THEmightyALLunknowin
    @THEmightyALLunknowin Рік тому +1

    thank you so much! Im sad to admit how long this took me ( 2 days ) thank you so much again! Also good advice, I do agree the more senior we get the more and more I just skim docs and it always ends up hurting me T-T

  • @VishwasUnisys
    @VishwasUnisys Рік тому +1

    For this solution i have spent 2-3 days man thanks for this

  • @vinitkumarparmar1339
    @vinitkumarparmar1339 7 місяців тому +1

    I tried to solve this problem from 16 hours now I find the solution thanks brother 😊😊

  • @atlas-brtv
    @atlas-brtv Рік тому +1

    Big thank you from Brazil my man!!!

  • @nalonso12589
    @nalonso12589 Рік тому +1

    Thank you, this was very helpful!

  • @SPCPerez19Delta
    @SPCPerez19Delta 10 місяців тому +4

    4 hours? Try 2 weeks lol. There's still something very inconsistent about this solution from react.

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

    You just saved me 2 hours, thank you 😂

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

    Thank you so much!

  • @jocospeed98
    @jocospeed98 Рік тому +1

    I have exactly the same issue. I'm trying to copme up with an easier solution for this. Does anyone have any idea how this linking process could be made easier?

  • @danielroyston-lopez3147
    @danielroyston-lopez3147 9 місяців тому

    Hi,
    I am having this issue and when I link the react version from my external package, it unlinks the actual package and vice versa. I’ve been running around in circles trying to fix this. Any help would be appreciated

    • @prashan-dev
      @prashan-dev  8 місяців тому

      From the package root directory, run "npm link ./path-to/app/node_modules/react. And then in the app root directory, run "npm link @mypackage/pkg".
      Are you linking multiple packages? If so make sure you link multiple package in the same command. For example, if you want to link @mypackage/pkg1 and @mypackage/pkg2, then make sure you run "npm link @mypackage/pkg1 @mypackage/pkg2" in the app root directory. Hope that helps :)

  • @cooperasis
    @cooperasis 6 місяців тому +1

    Thank YOU

  • @saitharunch7059
    @saitharunch7059 Рік тому +1

    This helped a lot bro ❤