4 ms·
If specific version are used then you can end up with multiple versions of the same dependency which can cause additional problems if they're passed around. In
by flukus 9y ago
If specific version are used then you can end up with multiple versions of the same dependency which can cause additional problems if they're passed around. In compiled languages you end up with errors like "can't assign typeA to typeA because they are different types", when they are different versions of the same type.
Not sure how node would handle the same type of error but I'm guessing it would involve subtle compatibility issues.
- yuchi 9y agoYou would have no errors except when dependencies expect to be “the only one”, in “peer dependency” style.