Answer the question
In order to leave comments, you need to log in
Why doesn't webstorm understand component imports via @ in vue?
Webstorm doesn't understand component imports via @ what should I do?
Answer the question
In order to leave comments, you need to log in
If you are on nuxt.js, then create your own config and specify it in the webstorm settings.
const path = require('path')
module.exports = {
resolve: {
extensions: ['.js', '.json', '.vue', '.ts'],
root: path.resolve(__dirname),
alias: {
'@': path.resolve(__dirname),
'~': path.resolve(__dirname),
},
},
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question