Intermittent "TypeError: "exports" is read-only" error with Webpack and Vue-CLI
According to https://github.com/vuejs/vue-cli/issues/3227 this is due to some configurable behaviour. Add this in your vue.config.js:
module.exports = { chainWebpack: (config) => { config.resolve.symlinks(false) }}
It's working in my case.
I've run into this problem even after adding
chainWebpack: (config) => { config.resolve.symlinks(false)}
to my vue.config.js
To resolve, I deleted my node_modules folder and ran a fresh npm install