Webstrom has an option to set path to webpack config. But when I set it to nuxt's webpack config it throws error:
Can't analyse base.config.js: coding assistance will ignore module resolution rules in this file.
Possible reasons: this file is not a valid webpack configuration file or its format is not currently supported by the IDE
I tried to specify webpack/base.config.js
, webpack/client.config.js
, webpack/server.config.js
with no luck.
Maybe you extract parts of webpack config to separate file which Webstorm can analyze?
I want it to teach webstorm to understand ~/
aliases
I set webpack.config.js on the project root for WebStorm.
That file is invalid for Nuxt and it is valid only for WebStorm.
module.exports = {
resolve: {
// for WebStorm
alias: {
'@': path.resolve(__dirname),
'~': path.resolve(__dirname)
}
}
};
Does this work for .vue
files with lang="ts"
?
JetBrains say it won't:
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
I set webpack.config.js on the project root for WebStorm.
That file is invalid for Nuxt and it is valid only for WebStorm.