Skip to content

robcaldecott/pnpm-storybook-builder-vite

Repository files navigation

pnpm storybook-builder-vite issue

By default pnpm uses a tree structure for node modules instead of hoisting all depenencies into a flat folder structure. This causes storybook-builder-vite to fail to launch with the following error:

info @storybook/react v6.4.19
info
info => Loading presets
ERR! Error: [vite-plugin-mdx] "@mdx-js/react" must be installed

One workaround is to enable classic node hoisting via a setting in .npmrc:

node-linker=hoisted

While this works, when used in a pnpm monorepo it can cause other issues.

Any ideas on a solution are welcome.

storybookjs/builder-vite#55

storybookjs/builder-vite#237

pnpm/pnpm#4284

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published