以下の内容はhttps://tech.motoki-watanabe.net/entry/2025/03/06/130716より取得しました。


storybook、なにもしていないのに急にFailed to fetch dynamically imported moduleって言われた が、結局キャッシュ消してリロードしたら解決した

Failed to fetch dynamically imported module: http://localhost:6006/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/@storybook_addon-interactions_preview.js?v=ca377e5c
The file does not exist at "/Users/[ユーザー名]/Documents/git/[プロジェクト名]/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/chunk-A7QLSCQZ.js?v=ca377e5c" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to `optimizeDeps.exclude`.

って急に出るようになった。

github.com

github.com

vite.config.tsでviteFinalでoptimizeDeps.excludeに@storybook/addon-interactionsを指定すると治ったりしたが、そもそもなにもしていないのにこの設定必要なのは釈然としない。

で、PC再起動したりnode_modules消したりしてもうまくいかなかったけど、GoogleChromeでキャッシュ消して再リロードをしたら治った。




以上の内容はhttps://tech.motoki-watanabe.net/entry/2025/03/06/130716より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14