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で警告が出ている② #406

Open
tyokinuhata opened this issue Oct 19, 2024 · 1 comment
Open

Storybookで警告が出ている② #406

tyokinuhata opened this issue Oct 19, 2024 · 1 comment

Comments

@tyokinuhata
Copy link
Member

WARN Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

動的な require() を使用していると言われている。
StorybookはESMを使用しているはずなのでどこが問題なのかイマイチわからない

@tyokinuhata
Copy link
Member Author

client.js:199 [HMR] bundle 'preview' has 2 warnings
client.js:200 ./node_modules/@storybook/nextjs/dist/chunk-FFRTCGB4.mjs 1:224-231Critical dependency: require function is used in a way in which dependencies cannot be statically extracted./node_modules/@storybook/nextjs/dist/chunk-FFRTCGB4.mjs 1:353-360Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

ブラウザ側で↑のような警告が出ているので、 @storybook/nextjs の依存関係内で発生しているのかもしれない。そうなるとライブラリのアップデートくらいしかできることはなさそう

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