Closed jennydaman closed 10 months ago
Don't use symlinks to test libraries, that's full of unexpected and non-representative behaviors.
Use something like yalc
instead.
Closing, let me know if you are still having issues and we can reopen/look into them.
I am trying to create a React component library and use
pnpm link
to use it in a demo project. In the demo project, I am trying to use Preact (while the component library uses React).https://github.com/jennydaman/preact-vite-pnpm-link-bug
In this minimal reproduction case, I created some projects by running
I also created a third package which exports
ExampleComponent
:To
{preact,react}-demo/src/App.tsx
I added the codeThen linked the projects:
The
react-demo
works as-expected, howeverpreact-demo
fails: