Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn link support? #43

Open
maybebansky opened this issue Oct 9, 2023 · 1 comment
Open

yarn link support? #43

maybebansky opened this issue Oct 9, 2023 · 1 comment

Comments

@maybebansky
Copy link

maybebansky commented Oct 9, 2023

As much as Storybook is great, sometimes I want to test a library in another repo, and id like to be able to do this before publishing. Can this be done with PRandJ?

Ive done this previously with "yarn link". When I run the command it looks promising:

success Registered "PROJECT-NAME".
info You can now run `yarn link "PROJECT-NAME"` in the projects where you want to use this package and it will be used instead.
✨  Done in 0.02s.

But when I try and use it in another repo I get an error:

Module not found: Can't resolve 'PROJECT-NAME'

These steps have worked for me before when my component library was just a .tsx file, so im not sure if my set up is wrong or if this wont work with PRandJ?

@moishinetzer
Copy link
Owner

Can you try this using npm link and see if that works? This could be a yarn issue rather than an issue with this project

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

No branches or pull requests

2 participants