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
[question] Error: Cannot find module 'detect-package-manager' #414
Comments
I see the same thing with So, in other words, this package is depending on npm's (and yarn 1's) default behavior of hoisting dependencies and needs either a deprendency or peerDependency on both I haven't tested, but with newer versions of yarn that have PnP enabled it probably fails similarly. |
It seems that when running tests for a Storybook managed in a separate package, with a package.json that only includes
@storybook/test-runner
,concurrently
, andwait-on
as dependencies, an error occurs statingError: Cannot find module 'detect-package-manager'
.I suspect this error is due to
detect-package-manager
being included in thedevDependencies
of@storybook/test-runner
, rather than in itsdependencies
.The version of
@storybook/test-runner
being used is0.16.0
.The text was updated successfully, but these errors were encountered: