Vue-cli3 set up an alias, but it didn't work. I don't know what went wrong.

aliases are set in vue.config.js

const path = require("path");
function resolve (dir) {
    return path.join(__dirname, dir)
}
// 
module.exports = {
    chainWebpack: config => {
        config.resolve.alias
            .set("@", resolve("src"))
            .set("_c", resolve("src/components"))
            .set("_conf", resolve("config"))
    }
}

but report an error when using

clipboard.png


how do you quote it?


path.join (_ _ dirname, dir) is changed to path.resolve (_ _ dirname, dir)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b4d2-2ba69.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b4d2-2ba69.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?