vuejs / vue-loader

📦 Webpack loader for Vue.js components
MIT License
4.99k stars 915 forks source link

Cannot find module 'cache-loader' error when trying to upgrade to webpack 5 #1998

Closed xaviarnl closed 2 years ago

xaviarnl commented 2 years ago

I am trying to upgrade from webpack 4 to webpack 5. Everything seems to have been updated & modified correctly now, except vue-loader. Whenever I try to create a build, I run into a lot of errors, all of the same form:

Module build failed (from ./node_modules/vue-loader/lib/loaders/pitcher.js):
Error: Cannot find module 'cache-loader'

I am using:

What I have tried so far:

Before the webpack upgrade I was using vue 2.7.0 and vue-loader 15.10.0, and it worked without any problems.

vue-bot commented 2 years ago

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!