Skip to content

Errors while installing packages using different versions of create-toolpad-app in a monorepo #3692

Answered by Janpot
iamlvv asked this question in Help and support
Discussion options

You must be logged in to vote

Multiple versions of @emotion/react in a page and multiple versions of @tanstack/react-query in a page make producers and consumers of certain React context not match up with each other.
For now I forced depuplicating these packages in the toolpad bundler, but I can't guarantee this won't start breaking again some day with a different package,
npm dependency hoisting makes modules end up being resolved from places they shouldn't be resolved from. Converting your workspace to a pnpm workspace also fixes the issue for me as it creates a much more predictable node_modules structure to resolve from.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@iamlvv
Comment options

@Janpot
Comment options

@iamlvv
Comment options

@Janpot
Comment options

Answer selected by iamlvv
@iamlvv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants