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

Storybookのビルドエラー調査 #771

Closed
fo-ji opened this issue Nov 6, 2024 · 0 comments
Closed

Storybookのビルドエラー調査 #771

fo-ji opened this issue Nov 6, 2024 · 0 comments
Assignees

Comments

@fo-ji
Copy link
Owner

fo-ji commented Nov 6, 2024

$ storybook dev -p 6006
@storybook/core v8.4.2

WARN The following packages are incompatible with Storybook 8.4.2 as they depend on different major versions of Storybook packages:
WARN - @storybook/addon-postcss@2.0.0
WARN 
WARN 
WARN Please consider updating your packages or contacting the maintainers for compatibility details.
WARN For more on Storybook 8 compatibility, see the linked GitHub issue:
WARN https://github.com/storybookjs/storybook/issues/26031
info => Serving static files from ././public at /
info => Starting manager..
info => Starting preview..
info Addon-docs: using MDX3
info => Using PostCSS preset with postcss@8.4.47
info => Using SWC as compiler
info => Using default Webpack5 setup
<i> [webpack-dev-middleware] wait until bundle finished
10% building 0/3 entries 2/3 dependencies 0/2 modulesinfo Using tsconfig paths for react-docgen
ERROR in ./node_modules/@storybook/nextjs/dist/export-mocks/headers/index.mjs 3:0-71
Module not found: Error: Can't resolve 'next/dist/client/components/headers' in '/app/node_modules/@storybook/nextjs/dist/export-mocks/headers'
 @ ./node_modules/next-auth/lib/index.js 3:0-39 45:39-46 91:35-42
 @ ./node_modules/next-auth/index.js 71:0-42 111:18-26 134:14-22
 @ ./src/features/auth/actions/login/index.ts 5:0-38 22:29-38
 @ ./src/features/auth/components/login/credentials-login-form.tsx 18:0-55 22:59-75
 @ ./src/features/auth/components/login/login-form.tsx 8:0-64 42:42-62
 @ ./src/features/auth/index.ts 5:0-46 5:0-46
 @ ./src/components/ui/desktop-navigation.tsx 7:0-45 294:64-74
 @ ./src/components/ui/desktop-navigation.stories.tsx 4:0-57 7:13-30
 @ ./src/ lazy ^\.\/.*$ include: (?%21.*node_modules)(?:\/src(?:\/(?%21\.)(?:(?:(?%21(?:^%7C\/)\.).)*?)\/%7C\/%7C$)(?%21\.)(?=.)[^/]*?\.stories\.(js%7Cjsx%7Cmjs%7Cts%7Ctsx))$ chunkName: [request] namespace object ./components/ui/desktop-navigation.stories.tsx ./components/ui/desktop-navigation.stories
 @ ./storybook-stories.js 12:11-16:5
 @ ./storybook-config-entry.js 8:0-50 19:31-39 26:2-29:4 26:58-29:3 28:31-39

preview compiled with 1 error
=> Failed to build the preview
99% end closing watch compilationWARN Force closed preview build
SB_BUILDER-WEBPACK5_0003 (WebpackCompilationError): There were problems when compiling your code with Webpack.
Run Storybook with --debug-webpack for more information.
    at starter (./node_modules/@storybook/builder-webpack5/dist/index.js:1:23903)
    at starter.next (<anonymous>)
    at Module.start (./node_modules/@storybook/builder-webpack5/dist/index.js:1:25882)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async storybookDevServer (./node_modules/@storybook/core/dist/core-server/index.cjs:36000:11)
    at async buildOrThrow (./node_modules/@storybook/core/dist/core-server/index.cjs:35017:12)
    at async buildDevStandalone (./node_modules/@storybook/core/dist/core-server/index.cjs:37190:78)
    at async withTelemetry (./node_modules/@storybook/core/dist/core-server/index.cjs:35757:12)
    at async dev (./node_modules/@storybook/core/dist/cli/bin/index.cjs:2591:3)
    at async s.<anonymous> (./node_modules/@storybook/core/dist/cli/bin/index.cjs:2643:74)

storybookjs/storybook#29380

@fo-ji fo-ji self-assigned this Nov 6, 2024
@fo-ji fo-ji closed this as completed Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant