percy / percy-storybook

Percy's Storybook SDK.
https://docs.percy.io/docs/storybook
MIT License
149 stars 45 forks source link

[percy] Error: Cannot find package '@percy/core' #860

Closed felipeplets closed 8 months ago

felipeplets commented 9 months ago

The problem

When running storybook in a monorepo using pnpm workspaces and hoist=false Percy Storybook is not able to find @percy/core. The message presented is:

[percy] Error: Cannot find package '@percy/core' imported from /Users/myuser/projects/percy/percy-storybook-dep-issue/node_modules/.pnpm/@percy+storybook@5.0.1/node_modules/@percy/storybook/dist/config.js

Environment

Code to reproduce issue

I have created a repository explaining the issue and the solution https://github.com/felipeplets/percy-storybook-dep-issue

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] commented 8 months ago

This issue was closed because it has been stalled for 28 days with no activity.

felipeplets commented 8 months ago

@ninadbstack could you please take a look at this one too? It got closed as stale but it is still relevant.