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
After installing Storybook to a Vite3/Vue3/Rails project, starting StoryBook fails with this message:
yarn run v1.22.19
$ start-storybook -p 6006
info @storybook/vue3 v6.5.10
info
info => Loading presets
info => Using cached manager
(node:33134) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
╭────────────────────────────────────────────────────╮
│ │
│ Storybook 6.5.10 for Vue3 started │
│ 349 ms for preview │
│ │
│ Local: http://localhost:6006/ │
│ On your network: http://169.254.61.25:6006/ │
│ │
╰────────────────────────────────────────────────────╯
07:13:34 [vite] Internal server error: Failed to resolve import "@storybook/vue3/dist/esm/client/docs/config" from "../../../../virtual:/@storybook/builder-vite/vite-app.js". Does the file exist?
Plugin: vite:import-analysis
File: /virtual:/@storybook/builder-vite/vite-app.js
6 | const getProjectAnnotations = async () =>
7 | composeConfigs(await Promise.all([import('@storybook/vue3/dist/esm/client/preview/config'),
8 | import('@storybook/vue3/dist/esm/client/docs/config'),
| ^
9 | import('@storybook/addon-links/preview.js'),
10 | import('@storybook/addon-docs/preview.js'),
at formatError (file:///Users/ledermann/Projects/templatus-vue/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:35330:46)
at TransformContext.error (file:///Users/ledermann/Projects/templatus-vue/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:35326:19)
at normalizeUrl (file:///Users/ledermann/Projects/templatus-vue/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:40255:33)
at async TransformContext.transform (file:///Users/ledermann/Projects/templatus-vue/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:40389:47)
at async Object.transform (file:///Users/ledermann/Projects/templatus-vue/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:35579:30)
at async loadAndTransform (file:///Users/ledermann/Projects/templatus-vue/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:39888:29)
07:13:34 [vite] Internal server error: Failed to resolve import "@storybook/vue3/dist/esm/client/docs/config" from "../../../../virtual:/@storybook/builder-vite/vite-app.js". Does the file exist?
Plugin: vite:import-analysis
File: /virtual:/@storybook/builder-vite/vite-app.js
6 | const getProjectAnnotations = async () =>
7 | composeConfigs(await Promise.all([import('@storybook/vue3/dist/esm/client/preview/config'),
8 | import('@storybook/vue3/dist/esm/client/docs/config'),
| ^
9 | import('@storybook/addon-links/preview.js'),
10 | import('@storybook/addon-docs/preview.js'),
at formatError (file:///Users/ledermann/Projects/templatus-vue/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:35330:46)
at TransformContext.error (file:///Users/ledermann/Projects/templatus-vue/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:35326:19)
at normalizeUrl (file:///Users/ledermann/Projects/templatus-vue/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:40255:33)
at async TransformContext.transform (file:///Users/ledermann/Projects/templatus-vue/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:40389:47)
at async Object.transform (file:///Users/ledermann/Projects/templatus-vue/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:35579:30)
at async loadAndTransform (file:///Users/ledermann/Projects/templatus-vue/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:39888:29) (x2)
It seems it tries to require a file named @storybook/vue3/dist/esm/client/docs/config which does not exist in the package.
To demonstrate the issue, I created a PR to my repo.
What version of
vite
are you using?3.0.9
System info and storybook versions
Describe the Bug
After installing Storybook to a Vite3/Vue3/Rails project, starting StoryBook fails with this message:
It seems it tries to require a file named
@storybook/vue3/dist/esm/client/docs/config
which does not exist in the package.To demonstrate the issue, I created a PR to my repo.
Link to Minimal Reproducible Example
templatus/templatus-vue#1215
Participation
The text was updated successfully, but these errors were encountered: