storybook: GET http://localhost:6006/sb-preview/runtime.js net::ERR_ABORTED 404 (Not Found)

Describe the bug

pnpm dlx storybook@8.5.0init

select vue3 and vite then run pnpm storybook

The command line reported an error:

  info => Starting manager..
  info => Starting preview..
  The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
  ╭────────────────────────────────────────────────────────────────────────────────────────────────╮
  │                                                                                                │
  │   Storybook 8.5.0 for D:\projects\nominox\gamebff-frontend\node_modules\.pnpm\@storybook+vue   │
  │   3-vite@8.5.0_storybook@8.5.0_prettier@3.3.3__vite@5.4.9_@types+node@22.7.8_less_ih2kvum5g4   │
  │   cpenog3bonzyb23e\node_modules\@storybook\vue3-vite started                                   │
  │   681 ms for manager and 5.29 s for preview                                                    │
  │                                                                                                │
  │   Local:            http://localhost:6006/                                                     │
  │   On your network:  http://192.168.169.77:6006/                                                │
  │                                                                                                │
  ╰────────────────────────────────────────────────────────────────────────────────────────────────╯X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "WithTooltip"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs:3:9:
        3 │ import { WithTooltip, TooltipNote, Form } from 'storybook/internal/components';
          ╵          ~~~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "TooltipNote"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs:3:22:
        3 │ import { WithTooltip, TooltipNote, Form } from 'storybook/internal/components';
          ╵                       ~~~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "Form"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs:3:35:
        3 │ import { WithTooltip, TooltipNote, Form } from 'storybook/internal/components';
          ╵                                    ~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "withReset"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:9:
        4 │ import { withReset, SyntaxHighlighter, FlexBar, Form, IconButton, codeCommon, compon...
          ╵          ~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "SyntaxHighlighter"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:20:
        4 │ import { withReset, SyntaxHighlighter, FlexBar, Form, IconButton, codeCommon, compon...
          ╵                     ~~~~~~~~~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "FlexBar"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:39:
        4 │ import { withReset, SyntaxHighlighter, FlexBar, Form, IconButton, codeCommon, compon...
          ╵                                        ~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "Form"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:48:
        4 │ ...withReset, SyntaxHighlighter, FlexBar, Form, IconButton, codeCommon, components, ...
          ╵                                           ~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "IconButton"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:54:
        4 │ ..., SyntaxHighlighter, FlexBar, Form, IconButton, codeCommon, components, Zoom, Act...
          ╵                                        ~~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "codeCommon"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:66:
        4 │ ...lighter, FlexBar, Form, IconButton, codeCommon, components, Zoom, ActionBar, Butt...
          ╵                                        ~~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "components"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:78:
        4 │ ...xBar, Form, IconButton, codeCommon, components, Zoom, ActionBar, Button, Link, Re...
          ╵                                        ~~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "Zoom"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:90:
        4 │ ...m, IconButton, codeCommon, components, Zoom, ActionBar, Button, Link, ResetWrappe...
          ╵                                           ~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "ActionBar"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:96:
        4 │ ...tton, codeCommon, components, Zoom, ActionBar, Button, Link, ResetWrapper, Code, ...
          ╵                                        ~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "Button"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:107:
        4 │ ...eCommon, components, Zoom, ActionBar, Button, Link, ResetWrapper, Code, nameSpace...
          ╵                                          ~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "Link"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:115:
        4 │ ..., components, Zoom, ActionBar, Button, Link, ResetWrapper, Code, nameSpaceClassNa...
          ╵                                           ~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "ResetWrapper"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:121:
        4 │ ...ts, Zoom, ActionBar, Button, Link, ResetWrapper, Code, nameSpaceClassNames, H3, H...
          ╵                                       ~~~~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "Code"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:135:
        4 │ ...ActionBar, Button, Link, ResetWrapper, Code, nameSpaceClassNames, H3, H2, Loader,...
          ╵                                           ~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "nameSpaceClassNames"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:141:
        4 │ ...ton, Link, ResetWrapper, Code, nameSpaceClassNames, H3, H2, Loader, EmptyTabConte...
          ╵                                   ~~~~~~~~~~~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "H3"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:162:
        4 │ ...esetWrapper, Code, nameSpaceClassNames, H3, H2, Loader, EmptyTabContent, TabsStat...
          ╵                                            ~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "H2"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:166:
        4 │ ...Wrapper, Code, nameSpaceClassNames, H3, H2, Loader, EmptyTabContent, TabsState, E...
          ╵                                            ~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "Loader"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:170:
        4 │ ...r, Code, nameSpaceClassNames, H3, H2, Loader, EmptyTabContent, TabsState, ErrorFo...
          ╵                                          ~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "EmptyTabContent"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:178:
        4 │ ...SpaceClassNames, H3, H2, Loader, EmptyTabContent, TabsState, ErrorFormatter, getS...
          ╵                                     ~~~~~~~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "TabsState"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:195:
        4 │ ...s, H3, H2, Loader, EmptyTabContent, TabsState, ErrorFormatter, getStoryHref, With...
          ╵                                        ~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "ErrorFormatter"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:206:
        4 │ ...ader, EmptyTabContent, TabsState, ErrorFormatter, getStoryHref, WithTooltipPure }...
          ╵                                      ~~~~~~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "getStoryHref"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:222:
        4 │ ...ontent, TabsState, ErrorFormatter, getStoryHref, WithTooltipPure } from 'storyboo...
          ╵                                       ~~~~~~~~~~~~
  
  X [ERROR] No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "WithTooltipPure"
  
      ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:236:
        4 │ ...e, ErrorFormatter, getStoryHref, WithTooltipPure } from 'storybook/internal/compo...
          ╵                                     ~~~~~~~~~~~~~~~
  
  
   ERROR  Unhandled promise rejection: Build failed with 25 errors:                       17:16:52
  ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs:3:9: ERROR: No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "WithTooltip"
  ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs:3:22: ERROR: No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "TooltipNote"
  ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs:3:35: ERROR: No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "Form"
  ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:9: ERROR: No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "withReset"
  ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:20: ERROR: No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "SyntaxHighlighter"
  ...
  
    ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs:3:9: ERROR: No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "WithTooltip"
    ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs:3:22: ERROR: No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "TooltipNote"
    ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs:3:35: ERROR: No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "Form"
    ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:9: ERROR: No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "withReset"
    ../../node_modules/.pnpm/@storybook+blocks@8.5.0_react-dom@18.3.1_react@18.3.1__react@18.3.1_storybook@8.5.0_prettier@3.3.3_/node_modules/@storybook/blocks/dist/index.mjs:4:20: ERROR: No matching export in "../../node_modules/.pnpm/storybook@8.5.0_prettier@3.3.3/node_modules/storybook/core/components/index.js" for import "SyntaxHighlighter"
    ...
    at failureErrorWithLog (D:\projects\nominox\gamebff-frontend\node_modules\.pnpm\esbuild@0.21.5\node_modules\esbuild\lib\main.js:1472:15)
    at D:\projects\nominox\gamebff-frontend\node_modules\.pnpm\esbuild@0.21.5\node_modules\esbuild\lib\main.js:945:25
    at D:\projects\nominox\gamebff-frontend\node_modules\.pnpm\esbuild@0.21.5\node_modules\esbuild\lib\main.js:1353:9
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

and on the page for http://localhost:6006/, error:

GET http://localhost:6006/sb-preview/runtime.js net::ERR_ABORTED 404 (Not Found)

Image

There are problems with almost all of your versions

Reproduction link

no

Reproduction steps

No response

System

System:
    OS: Windows 10 10.0.19045
    CPU: (24) x64 13th Gen Intel(R) Core(TM) i7-13700
  Binaries:
    Node: 20.14.0 - ~\AppData\Local\fnm_multishells\23504_1737369058038\node.EXE
    npm: 10.7.0 - ~\AppData\Local\fnm_multishells\23504_1737369058038\npm.CMD
    pnpm: 9.12.2 - ~\AppData\Local\fnm_multishells\23504_1737369058038\pnpm.CMD <----- active
  Browsers:
    Edge: Chromium (128.0.2739.63)
  npmPackages:
    @storybook/addon-essentials: 8.5.0 => 8.5.0
    @storybook/addon-interactions: 8.5.0 => 8.5.0
    @storybook/addon-onboarding: 8.5.0 => 8.5.0
    @storybook/blocks: 8.5.0 => 8.5.0
    @storybook/test: 8.5.0 => 8.5.0
    @storybook/vue3: 8.5.0 => 8.5.0
    @storybook/vue3-vite: 8.5.0 => 8.5.0
    storybook: 8.5.0 => 8.5.0

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 14
  • Comments: 35 (12 by maintainers)

Most upvoted comments

Documenting the issue for the team, summarizing the above:

  1. In an empty directory, run npx storybook@latest init and pick the react-vite option
  2. Then run npm run build-storybook. It will warn:
vite v6.0.11 building for production...
node_modules/@storybook/core/dist/preview/runtime.js (3212:15): Use of eval in "node_modules/@storybook/core/dist/preview/runtime.js" is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/@storybook/core/dist/preview/runtime.js (3214:16): Use of eval in "node_modules/@storybook/core/dist/preview/runtime.js" is strongly discouraged as it poses security risks and may cause issues with minification.
✓ 122 modules transformed.
  1. If you look at the output index.html it contains the following line. However the file does not exist.
    <link href="./sb-preview/runtime.js" rel="prefetch" as="script" />

Digging in a little more, it looks like the file node_modules/@storybook/core/dist/preview/runtime.js DOES use eval and it’s coming from the telejson package. This code is not used by default–you need to configure it to use a legacy setting–but the code is still prebundled in.

Some guesses:

  • This issue might have been introduced during the package reduction project by prebundling things.
  • It might have been around for awhile, but Vite 5 was OK with eval and only Vite 6 is bailing

At any rate, we should do something about it.

Experiencing the same 404 error. However, I am using the @storybook/react-vite framework.

This has been fixed in the latest release. Closing!

npx storybook@latest upgrade

OK I’m reproducing now based on @mdillgen 's repo. Thanks everybody for your patience! Will try to track it down with the team. 🎉

🚨 ATTENTION 🚨 Per my comment above, this is a real bug and we’ll get to the bottom of it. However, as far as I can tell, it doesn’t actually have a huge impact on anything. If you’re having a problem with Storybook and believe that this error is the root cause, please let me know!

Hi, @shilman . Thank YOU for investigating. First off all you are right, it runs with pnpm run storybook. Obviously my example repo has npx serve storybook-static -p 6006 as the start script set. This is where the initial screen can’t find the right preview! So pnpm run storybook does solve the issue at a first glance and the landing page “Configure your project” is shown. But, anyway the error persists in console (see attachment):

Image

Also during build it throws some warnings:

vite v6.0.11 building for production...
node_modules/.pnpm/@storybook+core@8.5.1/node_modules/@storybook/core/dist/preview/runtime.js (3212:15): Use of eval in "node_modules/.pnpm/@storybook+core@8.5.1/node_modules/@storybook/core/dist/preview/runtime.js" is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/.pnpm/@storybook+core@8.5.1/node_modules/@storybook/core/dist/preview/runtime.js (3214:16): Use of eval in "node_modules/.pnpm/@storybook+core@8.5.1/node_modules/@storybook/core/dist/preview/runtime.js" is strongly discouraged as it poses security risks and may cause issues with minification.
✓ 122 modules transformed.

Storybook Environment Info:

System: OS: macOS 15.2 CPU: (12) x64 Intel® Core™ i7-9750H CPU @ 2.60GHz Shell: 5.9 - /bin/zsh Binaries: Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm pnpm: 9.15.4 - ~/Library/pnpm/pnpm <----- active Browsers: Chrome: 132.0.6834.111 Safari: 18.2 npmPackages: @storybook/addon-essentials: ^8.5.1 => 8.5.1 @storybook/addon-interactions: ^8.5.1 => 8.5.1 @storybook/addon-onboarding: ^8.5.1 => 8.5.1 @storybook/blocks: ^8.5.1 => 8.5.1 @storybook/react: ^8.5.1 => 8.5.1 @storybook/react-vite: ^8.5.1 => 8.5.1 @storybook/test: ^8.5.1 => 8.5.1 eslint-plugin-storybook: ^0.11.2 => 0.11.2 storybook: ^8.5.1 => 8.5.1

I have updated the example repo to contain the right start script!

** Disclaimer** This information might be inaccurate, due to it being generated automatically This appears to be an issue with missing exports from the storybook/internal/components package. The error occurs because the Vue3 Vite builder is trying to import components that don’t exist at the expected path.

To fix this:

  1. Update your imports to use the correct paths: js import { WithTooltip, TooltipNote, Form } from '@storybook/components';

  2. Add the following to your .storybook/main.js: js module.exports = { framework: '@storybook/vue3-vite', core: { disableTelemetry: true }, viteFinal: async (config) => { config.resolve.alias = { ...config.resolve.alias, 'storybook/internal/components': '@storybook/components' }; return config; } };

About Greptile

This response provides a starting point for your research, not a precise solution.

Help us improve! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

Edit Issue Bot Settings · Greptile

Just adding my affected versions to the discussion, errors show when everything is on the latest release 8.5.3

Command:

storybook build --docs

Results in:

docs:build: @storybook/core v8.5.3
docs:build: 
docs:build: info => Cleaning outputDir: storybook-static
docs:build: info => Loading presets
docs:build: info => Building manager..
docs:build: info => Manager built (130 ms)
docs:build: info => Building preview..
docs:build: info Using tsconfig paths for react-docgen
docs:build: vite v5.4.11 building for production...
../../node_modules/.pnpm/@storybook+core@8.5.3_prettier@3.4.2/node_modules/@storybook/core/dist/preview/runtime.js (3212:15): Use of eval in "../../node_modules/.pnpm/@storybook+core@8.5.3_prettier@3.4.2/node_modules/@storybook/core/dist/preview/runtime.js" is strongly discouraged as it poses security risks and may cause issues with minification.
../../node_modules/.pnpm/@storybook+core@8.5.3_prettier@3.4.2/node_modules/@storybook/core/dist/preview/runtime.js (3214:16): Use of eval in "../../node_modules/.pnpm/@storybook+core@8.5.3_prettier@3.4.2/node_modules/@storybook/core/dist/preview/runtime.js" is strongly discouraged as it poses security risks and may cause issues with minification.
✓ 2803 modules transformed.

Storybook Environment Info:

  System:
    OS: Linux 6.12 Fedora Linux 41 (Workstation Edition)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Shell: 5.2.32 - /bin/bash
  Binaries:
    Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 10.1.0 - ~/.nvm/versions/node/v20.9.0/bin/npm
    pnpm: 9.14.2 - ~/.local/share/pnpm/pnpm <----- active
  Browsers:
    Chrome: 132.0.6834.83
  npmPackages:
    @storybook/addon-actions: 8.5.3 => 8.5.3 
    @storybook/addon-essentials: 8.5.3 => 8.5.3 
    @storybook/addon-links: 8.5.3 => 8.5.3 
    @storybook/react: 8.5.3 => 8.5.3 
    @storybook/react-vite: 8.5.3 => 8.5.3 
    storybook: 8.5.3 => 8.5.3 

@shilman Unfortunately, I can not share my repo. As for reproduction steps I just install any storybook version post 8.3.7 and try to run pnpm storybook (I am using react-vite). There are no errors in terminal. Console has the previously stated 404s.