components icon indicating copy to clipboard operation
components copied to clipboard

PHPStorm / Intellij Support

Open ayalon opened this issue 4 years ago • 7 comments

I'm using the new components module and its a time saver. Thanks a lot.

Unfortunatly, PHPStorm with its vue.js plugin does not recognize the components anymore if they are not imported inside the vue file.

Is there a trick or a possibility to make it work again with PHPStorm / Intellij?

ayalon avatar Jul 14 '20 09:07 ayalon

Relevant https://youtrack.jetbrains.com/issue/WEB-46418

TheNoim avatar Aug 04 '20 11:08 TheNoim

Adding pending label since it depends of Jetbrains support.

atinux avatar Oct 16 '20 09:10 atinux

The issue mentioned by @TheNoim is marked as fixed but after upgrading to 2.15 I do not have any type hints anymore. Webstorm doesn't even find the manually imported components anymore.

Is my setup the problem or is there another webstorm issue that can be followed/upvoted?

Edit: The not finding any components issue was fixed by not excluding the .nuxt folder anymore, not sure why it worked before.

reinoldus avatar Mar 12 '21 08:03 reinoldus

I've received a few likes on my comment so I'd like to share the workaround here as well: https://github.com/nuxt/components/issues/51#issuecomment-806919651

Thanks to @grunghi for doing the heavy lifting one post above

reinoldus avatar Mar 25 '21 15:03 reinoldus

i just gotta say excellent work by @reinoldus and @grunghi for this

this would make a great nuxt module until Jetbrains decides to fix this

acidjazz avatar Apr 08 '21 22:04 acidjazz

I put @reinoldus and @grunghi 's work into a nuxt module https://github.com/fumeapp/nuxt-storm

acidjazz avatar May 02 '21 05:05 acidjazz

For those looking for a solution: Nuxt-storm

JasonLandbridge avatar Mar 13 '22 12:03 JasonLandbridge