Webpack refreshing whole cache after exception: [PackFileCacheStrategy]: Cannot read property 'hasStartTime' of undefined

Viewed 1111

We have a project using Typescript and Vue 3.1.5 and Vue CLI 5.0.0-beta.2 which in turn uses Webpack 5.47.0. For development the startup of vue-cli-service serve was really slow (lots of dependencies). So we activated the Webpack filesystem cache:

configureWebpack: {
  cache: {
    type: "filesystem",
  },
},

Now it works fine on Linux and MacOS. But on Windows it is often refreshing the whole cache after logging an exception:

[webpack.cache.PackFileCacheStrategy] Restoring pack from C:\Users\Smith\ws\kl\kl-frontend\node_modules.cache\webpack\default-development.pack failed: TypeError: Cannot read property 'hasStartTime' of undefined

Does anyone know what the issue could be? Maybe something to do with Filenames? We also have a job that deletes and then recreates some API files, usually with identical content. Could that throw off the caching?

0 Answers
Related