A issue about multiple versions of dependencies #5540
Closed
blueMountain007
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Our project is a mono repo managed with nx, The file hierarchy is as follows:
[email protected]
[email protected]
andgraphql-type-json
)payload
, and payload depends on[email protected]
)[email protected]
)[email protected]
)After executing the command
npm install
, the hierarchical relationship of dependencies is as follows:[email protected]
[email protected]
graphql-type-json
My problem description:
App1 used
[email protected]
before, so there is no need to upgrade thegraphql
version. But[email protected]
depends on[email protected]
Except for app1, other projects still depend on
[email protected]
, so thegraphql
version of the entire project cannot be upgraded to 16.8.1;After the dependency is installed,
graphql-type-json
in app1 is at the same level as thepayload
, and then references[email protected]
, while the payload references[email protected]
, resulting in two different ones being used inside the payload. version of graphql, which causes the payload to not work properly.Other
"nx": "14.8.9"
"payload": "2.3.1"
Beta Was this translation helpful? Give feedback.
All reactions