[webpack.cache.PackFileCacheStrategy] Caching failed for pack Error Cannot find module

Hello! I'm getting a warning on npm run dev - 1. None of the items in my require stack are part of my own code. Where should i look to fix this? 2. i thought we're already using SWC... why is webpack showing up?
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Cannot find module 'mini-css-extract-plugin/dist/CssDependency'
<w> Require stack:
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/compiled/webpack/bundle5.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/compiled/webpack/webpack.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/server/config-utils.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/server/config.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/server/next.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/server/lib/start-server.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/cli/next-dev.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/lib/commands.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/bin/next
<w> (during deserialization of Array)
<w> (during deserialization of webpack/lib/NormalModule)
<w> (during deserialization of Map)
<w> (during deserialization of webpack/lib/cache/PackFileCacheStrategy PackContentItems)
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Cannot find module 'mini-css-extract-plugin/dist/CssDependency'
<w> Require stack:
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/compiled/webpack/bundle5.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/compiled/webpack/webpack.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/server/config-utils.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/server/config.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/server/next.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/server/lib/start-server.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/cli/next-dev.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/lib/commands.js
<w> - /Users/fotoflo/dev/fastmonitor/node_modules/next/dist/bin/next
<w> (during deserialization of Array)
<w> (during deserialization of webpack/lib/NormalModule)
<w> (during deserialization of Map)
<w> (during deserialization of webpack/lib/cache/PackFileCacheStrategy PackContentItems)
1 Reply
fotoflo
fotofloOP2y ago
"mini-css-extract-plugin": "^2.7.2", Also i added this to my dev dependancies, no good
Want results from more Discord servers?
Add your server