Why webstorm does not understand the imports of the components using @ in vue?

5e414266ecb7b363704482.jpeg
Webstorm not understand the imports of the components using @ what to do?
April 7th 20 at 10:58
1 answer
April 7th 20 at 11:00
Solution
If you nuxt.js then create your config and specify it in the settings webstorm.

const path = require('path')

module.exports = {
 resolve: {
 extensions: ['.js', '.json', '.vue', '.ts'],
 root: path.resolve(__dirname),
 alias: {
 '@': path.resolve(__dirname),
 '~': path.resolve(__dirname),
},
},
}

Find more questions by tags WebStorm