Skip to content

issue with resolve.path #11

@peteringram0

Description

@peteringram0

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',
        }],
    },
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions