You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am experimenting with pnpm as its monorepo support is excellent. However, when using Storybook with storybook-builder-vite in a workspace it will not start and instead displays the following error:
info => Loading presets
ERR! Error: [vite-plugin-mdx] "@mdx-js/react" must be installed
ERR! at resolveImport (/Users/caldecor/Projects/pnpm-storybook/node_modules/.pnpm/artifactory.keyloop.com+vite-plugin-mdx@3.5.10_@mdx-js+mdx@1.6.22+vite@2.7.13/node_modules/vite-plugin-mdx/dist/imports.js:29:23)
<snip>
On the face of it this looks like a dependency resolution issue as the same repo will work OK using npm8 or yarn1 workspaces.
To Reproduce
You will need pnpm installed (npm install -g pnpm).
Based on the error message, I suspect that it might be a case of vite-plugin-mdx not declaring some optional peer dependency, or being incompatible with pnpm by expecting hoisted packages.
Describe the bug
I am experimenting with
pnpm
as its monorepo support is excellent. However, when using Storybook withstorybook-builder-vite
in a workspace it will not start and instead displays the following error:On the face of it this looks like a dependency resolution issue as the same repo will work OK using
npm8
oryarn1
workspaces.To Reproduce
You will need
pnpm
installed (npm install -g pnpm
).Clone the following repo: https://github.com/robcaldecott/pnpm-storybook and then:
System
Additional context
There is a proposed workaround by creating a
.npmrc
file in the root of the repo that looks like this:However this causes
pnpm
some issues and seems like a last resort.The text was updated successfully, but these errors were encountered: