There seems to be an issue with alias when using vue-node. If i do a console.log on '~vue' inside my application it resolves however when running through vue-node and ava it reports "Cannot find module '~vue'" even though the paths seem correct.
const path = require('path');
module.exports = {
resolve: {
alias: {
'~vue': 'vue/dist/vue.min',
}
},
module: {
rules: [{
test: /\.vue$/,
loader: 'vue-loader',
}],
},
};
There seems to be an issue with alias when using vue-node. If i do a console.log on '~vue' inside my application it resolves however when running through vue-node and ava it reports "Cannot find module '~vue'" even though the paths seem correct.