Answer the question
In order to leave comments, you need to log in
Nuxt.js in PHPStorm, how to set up?
They are mainly interested in the method hinter in nuxt (middleware() for example) and that the storm would learn to understand and suggest paths starting with ~/@ (in nuxt this is the root directory).
Well, he does not particularly see imports. That is, I imported some module, let's say modal,
of course it suggests modal, but its properties and methods are no longer there.
Vue without nuxt - everything works fine, but not without nuxt :)
Answer the question
In order to leave comments, you need to log in
I found how to force ~/@ aliases to be taken into account, you need to create a js file with content
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