But why does this happen? The very first time for me a package manage installs two major versions for a package …
Thanks A TON!
But why does this happen? The very first time for me a package manage installs two major versions for a package …
Thanks A TON!
Same applies to most regular npm packages as well, for example you really only want a single version of "react", too.
the fix is to do away with @types and export types from the dependency itself so they are always in sync
If you're a driver and your car keeps breaking down constantly, you wouldn't open up the hood each time, slap your forehead and say "It's OK, it's only the camshaft phase variator this time!" You rightly expect the car to just work. If the car breaks often, it means it's shit; simple as that. The solution is to buy a better car. And there is no excuse in this case because plain JavaScript is 100% free.
It's like filling out useless bureaucratic government forms. You still get a hit of satisfaction once you finish filling them out even though deep down you know it was a massive waste of time and the whole process could have been much simpler.