Error: Cannot find module 'vue-loader-v16/package.json'
Try to just install the pacakge to devDependencies:
npm i --save-dev vue-loader-v16
It helped me out.
With babble.config.js
do you then mean babel.config.js
, hehe?Anyhow, I think your babel.config.js
should just be like this:
module.exports = { presets: ["@vue/cli-plugin-babel/preset"],};
And for keeping your package.json more clean, you could make an .eslintrc.js
file instead - just copy/paste the data from your eslintConfig
key in package.json
Update npm to version higher than 6.9 and do anpm i
, this should install the missing packageshttps://github.com/vuejs/vue-cli/pull/5718
npm install npm@latest -g
(To update npm)
I solved it reinstalling the package. First you need to uninstall it
npm uninstall vue-loader-v16
Once uninstall completes, install it again
npm i vue-loader-v16
It seems obvious but it worked twice for me