+
Skip to content

Storybook integration doesn't work #1657

Closed
@shairez

Description

@shairez

Please provide the environment you discovered this bug in.

https://github.com/shairez/angular-storybook-bug

Which area/package is the issue in?

vite-plugin-angular

Description

Following the storybook guide, after all the steps I've tried to run npm run build-storybook (and even npm run storybook but I'm constantly getting an error, no matter if it's with npm or pnpm (tried with both)

Please provide the exception or error you saw

Image


build-storybook
> storybook build

@storybook/core v8.6.7

info => Cleaning outputDir: storybook-static
info => Loading presets
info => Building manager..
info => Manager built (92 ms)
info => Building preview..
WARN No story files found for the specified pattern: src/**/*.mdx
vite v6.2.2 building for production...
✓ 2 modules transformed.
✗ Build failed in 586ms
=> Failed to build the preview
[commonjs--resolver] Missing "./dist/client/docs/config.js" specifier in "@storybook/angular" package
    at e (file://./node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:15558:25)
    at n (file://./node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:15558:631)
    at o (file://./node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:15558:1293)
    at resolveExportsOrImports (file://./node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:19568:18)
    at resolveDeepImport (file://./node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:19581:25)
    at tryNodeResolve (file://./node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:19411:18)
    at Object.resolveId (file://./node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:19184:19)
    at Object.handler (file://./node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:51711:15)
    at file://./node_modules/rollup/dist/es/shared/node-entry.js:21835:40
    at async PluginDriver.hookFirstAndGetPlugin (file://./node_modules/rollup/dist/es/shared/node-entry.js:21735:28)

Other information

No response

I would be willing to submit a PR to fix this issue

if pointed to the right direction - yes :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载