You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I consider this may be a problem since I have experienced once during deploying process that it take quite a long time to find out the bug.
I have to remove all duplicate packages every time during deploying process. Another option of using peerDenpendencies is also not good enough I think. Should npm or node deal with this problem?
The text was updated successfully, but these errors were encountered:
You probably won't be surprised the answer is 'no' - they're different functions and therefore construct different objects. npm can flatten node_modules up to a point but not if they're API-incompatible versions of the same module.
@bnoordhuis thanks for comment. any suggestion on how to compare types? I still think it's a pitfall considering the result. I suppose you mean it's normal behaviour for all programming languages.
suppose my runtime directory structure is
a check like
or
may fail since MyType may point to eigher [email protected] or [email protected]
I consider this may be a problem since I have experienced once during deploying process that it take quite a long time to find out the bug.
I have to remove all duplicate packages every time during deploying process. Another option of using peerDenpendencies is also not good enough I think. Should npm or node deal with this problem?
The text was updated successfully, but these errors were encountered: