How to Ensure Library B Uses the Same Version of Library C as My App #27447
Replies: 2 comments 4 replies
-
This is solved by both libraries specifying a version range instead of an exact version. Example:
This will install To see all available version constraint characters, check out this page in the docs. Note that version specifiers only work with In the Node ecosystem you'll come across the term |
Beta Was this translation helpful? Give feedback.
-
hi @marvinhagemeister. thanks for responding the issue with the current way is that because deno doesn't throw an error on mismatching versions. deno will end up downloading a different versions of the C library for the B library without the user even noticing it. he will do it in a silent way. no errors not even showing a warning. and this behavior can cause unexpected behavior and bugs. I actually had a bug because deno made library B use a different version of library C than the main app uses |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a scenario where my application imports Library B, and both my app and Library B rely on Library C. I want to ensure that Library B uses the same version of Library C as my application.
How can I enforce this in Deno?
Beta Was this translation helpful? Give feedback.
All reactions