Getting multiple versions of React with file:
#3833
Unanswered
sachinraja
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a repo for my package with it and the examples for it structured like this (sachinraja/rodemirror, but I converted it to a monorepo because I couldn't get it to work):
The
examples/*/package.json
have this:The
package.json
(in the root dir, for the actual package) has this:When I try to open the example page that uses a component from the main package, React will error because there are multiple versions of it. With a monorepo (
pnpm-workspace.yaml
), I'm assumingreact
can be deduped. Is there a way to install"rodemirror": "file:../.."
like a normal package? I want to avoid a monorepo because the examples can have a lot of dependencies that are not necessary for development in the main package.Beta Was this translation helpful? Give feedback.
All reactions