How to make pnpm local dependency and vite work together? #8485
Unanswered
ivan-suhorukov
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
-
Hello! I'm facing an issue here. I have a two repo's: one for a main application and one for a library for it. Both of them have a common dependency
lit.js
. Library have it as a peer dependency, and app as a main dependency. It seems like this:So my problem is:
pnpm link ../lib
because then it loads twolit.js
deps in main project, andlit.js
shows me an error.pnpm add file:../lib
neather, because in that casevite
does not handlelib
project changes. Even then i sets this invite
config:Is there some workaround with this? Or i have to move my lib in the main project? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions