@ alias in vue-cli 3 projects

Hi!

I've created a new Vue app using @vue/cli 3.0.0-beta.10 and @ alias is not resolved:

And this project haven't got any webpack.config.js file in order to specify in webstorm settings.

How can I resolve this alias?

Thanks!

8 comments

This is not working anymore in Intellij .. Any idea how to fix this one ?

0

Yeah sure, here you go :

https://github.com/Octirke/vue-webpack-config-error

While trying to reproduce I discovered that conf resolving is working when my vue project is the root directory. As soon as I move the vue app to a subdirectory (client), conf resolving is not working anymore.

0

Known issue, https://youtrack.jetbrains.com/issue/WEB-32564: alias is resolved relative to project root dir, not to module root dir where the package.json resides

0

Any fix while waiting for a new release apart from loading only the client directory in IntelliJ ? Will it be fixed in 2018.2 ?

 

Thanks.

0

I can't suggest any workarounds, sorry. Please follow the youtrack ticket for updates (https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications) to be notified when it's fixed

0

Please sign in to leave a comment.