nuxt / components

Scan and auto import components for Nuxt.js 2.13+
MIT License
887 stars 48 forks source link

PHPStorm / Intellij Support #72

Open ayalon opened 4 years ago

ayalon commented 4 years ago

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?

TheNoim commented 4 years ago

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

atinux commented 4 years ago

Adding pending label since it depends of Jetbrains support.

reinoldus commented 3 years ago

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 commented 3 years ago

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

acidjazz commented 3 years ago

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 commented 3 years ago

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

JasonLandbridge commented 2 years ago

For those looking for a solution: Nuxt-storm