Skip to content

Resolve Storybook build error #98

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

Closed
wants to merge 8 commits into from
2 changes: 1 addition & 1 deletion app/.storybook/main.js → app/.storybook/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const config = {
// https://storybook.js.org/docs/get-started/nextjs
name: "@storybook/nextjs",
options: {
nextConfigPath: path.resolve(__dirname, "../next.config.js"),
nextConfigPath: path.resolve(import.meta.dirname, "../next.config.js"),
builder: {
// lazyCompilation breaks Storybook when running from within Docker
// Google Translate this page for context: https://zenn.dev/yutaosawa/scraps/7764e5f17173d1
Expand Down
2 changes: 1 addition & 1 deletion app/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Loading