-
Notifications
You must be signed in to change notification settings - Fork 70
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
pnpm is not being detected by chromatic-cli #698
Comments
Hi @wollardj, I don't think we've explicitly worked to support pnpm but it's definitely on our radar as it is becoming more popular and Storybook is working to support it better. If you run |
Thanks, @tmeasday. Looking at the code leads me to believe that yarn-or-npm isn't meant to support pnpm either. That repo hasn't been updated in three years, and maybe it doesn't need to be given the nature of the problems it solves, but I wonder about the likelihood of getting new features added to that library. To answer your question, the output of the command you provided is |
I'm going to close this out for now since pnpm support issues would be more of a feature request than an issue at this point. If pnpm support is something the team would like to pursue I'd be happy to lend a hand with that. |
I'm reluctant to say it's blocking us. Our primary blocker is time right now; time to look into work arounds. We are able to upload assets to Chromatic, but we're not able to generate the original patch that Chromatic needs to expose change sets. We can certainly switch to npm or yarn, but then we're back to our lack of time 😄 |
@wollardj the only reason chromatic needs a patch build is when there is no chromatic build for the merge base of the PR: https://www.chromatic.com/docs/branching-and-baselines#patch-builds So a more manual solution looks something like:
The patch build feature is really just something to help folks get started with UI review before they have an existing set of builds on their repo. |
Hey @wollardj, it's been a long time but we've been working on pnpm compatibility. Support for pnpm is currently available in |
it worked for me in
|
Bug report
Our team has started using
pnpm
as our go-to package manager (npm compatibility with existing tooling + performance of yarn2 = win). We're hitting a snag when using--patch-build
. From what I can gather, that flag causes a call toinstallDependencies()
which in turn is usingyarn-or-npm
to spawn the installation process.Interestingly, the default seems to be
yarn
in our repo even though the README states thatnpm
is the fallback.It seems that our pipelines are able to publish to chromatic.com without issue, but I don't know if the
pnpm
support that currently exists with chromatic-cli is intentional or incidental - filing as a bug made sense, but I could also see who this might be a feature request.The text was updated successfully, but these errors were encountered: