i'm triying to create an alias in vue.config.js :
var path = require('path');
module.exports = {
resolve : {
alias : {
'core' : path.resolve(__dirname, '../core')
}
}
}
then i run : yarn serve
and this is the result :
ERROR Invalid options in vue.config.js: "resolve" is not allowed
please help !
Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!
You need to wrap that into the configureWebpack field.
https://cli.vuejs.org/guide/webpack.html#simple-configuration
Most helpful comment
You need to wrap that into the
configureWebpackfield.https://cli.vuejs.org/guide/webpack.html#simple-configuration