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
-
Beta Was this translation helpful? Give feedback.
Answered by
Janpot
Jun 21, 2024
Replies: 1 comment 7 replies
-
Thanks @iamlvv. The quickest way for us to assess the problem you run into would be through a minimal reproduction. Would you be able to create a small workspace that demonstrates the issue and share it as a git repo, or even just a zip file (you can remove the mode_modules folder to keep the size down)? From your description it looks like It's unexpectedly sharing some dependencies between the two projects. In general I wouldn't recommend running multiple versions of toolpad in the same workspace. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 apnpm
workspace also fixes the issue for me as it creates a much more predictable node_modules structure to resolve from.