Just transitioning from React.js to Vue.js and encountering an issue with the Vue loader that didn't occur initially. However, starting the server crashes the app from the second time onwards.
npm run serve
> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d1a5beb5be91e1ffe0ffe1">[email protected]</a> serve /home/riyad/Desktop/todo_wedevs/todo
> vue-cli-service serve
INFO Starting development server...
ERROR Error: Cannot find module 'vue-loader-v16/package.json'
Error: Cannot find module 'vue-loader-v16/package.json'...
Struggled with Vue CLI 3 as well as 2, tried different vue-loaders but faced the same issue. My babel.config.js file ->
const { VueLoaderPlugin } = require("vue-loader");
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
plugins: [new VueLoaderPlugin()],
};
package.json
{
"name": "todo",
"version": "0.1.0",...
the log->
0 info it worked if it ends with ok
1 verbose cli [ '/home/riyad/.nvm/versions/node/v11.10.1/bin/node',
1 verbose cli '/home/riyad/.nvm/versions/node/v11.10.1/bin/npm',
1 verbose cli 'run',
1 verbose cli 'serve' ]
2 info using <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="19776974592f372e3729">[email protected]</a>...etc.
Any suggestions on setting up a project securely with Vuex and Vue Router?