Skip to content
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

[Bug] Impossible to run storybook with latest update #18

Open
qlaffont opened this issue Dec 23, 2024 · 4 comments
Open

[Bug] Impossible to run storybook with latest update #18

qlaffont opened this issue Dec 23, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@qlaffont
Copy link

qlaffont commented Dec 23, 2024

Describe the bug

I have try to upgrade to latest version of storybook but it doesn't work

=> Failed to build the preview
Error: Missing "./internal/preview/runtime" specifier in "storybook" package
    at e (file://./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:15283:25)
    at n (file://./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:15283:631)
    at o (file://./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:15283:1301)
    at resolveExportsOrImports (file://./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:16481:18)
    at resolveDeepImport (file://./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:16494:25)
    at tryNodeResolve (file://./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:16324:18)
    at ResolveIdContext.resolveId (file://./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:16109:19)
    at EnvironmentPluginContainer.resolveId (file://./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:47137:17)
    at async resolve (file://./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:47678:12)
    at async file://./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:47694:22

Steps to reproduce

  1. Create Solid Start App
  2. Add storybook

Environment

Image

@qlaffont qlaffont added the bug Something isn't working label Dec 23, 2024
@SinnerAir
Copy link

SinnerAir commented Dec 24, 2024

I have the same problem (pnpm 9.15.1 with workspaces, vite 6.0.5)

> storybook dev -p 6006

@storybook/core v8.4.7

info => Starting manager..
info => Starting preview..
=> Failed to build the preview
Error: Missing "./internal/preview/runtime" specifier in "storybook" package
    at e (file:///D:/projects/apps/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:15283:25)
    at n (file:///D:/projects/apps/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:15283:631)
    at o (file:///D:/projects/apps/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:15283:1301)
    at resolveExportsOrImports (file:///D:/projects/apps/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:16481:18)
    at resolveDeepImport (file:///D:/projects/apps/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:16494:25)
    at tryNodeResolve (file:///D:/projects/apps/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:16324:18)
    at ResolveIdContext.resolveId (file:///D:/projects/apps/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:16109:19)
    at EnvironmentPluginContainer.resolveId (file:///D:/projects/apps/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:47137:17)
    at async resolve (file:///D:/projects/apps/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:47678:12)
    at async file:///D:/projects/apps/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-BZMjGe_U.js:47694:22

WARN Broken build, fix the error above.
WARN You may need to refresh the browser.

@SinnerAir
Copy link

I want to share a temporary solution. I visited the site https://new-storybook.netlify.app/, where I followed the link to the demo version for SolidJS. I updated the package.json

    "@storybook/addon-essentials": "^8.5.0-beta.5",
    "@storybook/addon-interactions": "^8.5.0-beta.5",
    "@storybook/blocks": "^8.5.0-beta.5",
    "@storybook/test": "^8.5.0-beta.5",
    "storybook": "^8.5.0-beta.5",

and the error was corrected

@yefu24324
Copy link

package.json add

  "pnpm": {
    "overrides": {
      "@storybook/builder-vite": "~8.4.6"
    }
  }

@yefu24324
Copy link

The error occurs because the dependency @storybook/builder-vite@next was installed, resulting in the non-stable version 5.0.0-beta. This library is not yet compatible.

"@storybook/builder-vite": "next",

If you are using pnpm, you can try

  "pnpm": {
    "overrides": {
      "@storybook/builder-vite": "~8.4.6"
    }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants