nuxt-storm icon indicating copy to clipboard operation
nuxt-storm copied to clipboard

No component props hints

Open prokhn opened this issue 3 years ago • 1 comments

Webstorm [latest] doesn't show props and events hints for any auto imported component, although everything works as expected. Has anyone faces similiar issue? With pressed control there is hint saying variant is a Custom Vue component property, if import component manually it will show "HTML prop 'variant'"

I know it isn't a nuxt-storm propblem, but hope someone found way to fix it

prokhn avatar Jan 21 '22 23:01 prokhn

Hi,

I personally don't have this problem but a possible solution could be setting up web-types for Webstorm: Web Types

package.json

{
	"scripts": {
		"update-web-types": "vue-docgen-web-types -c web-types-config.json",
	},
	"web-types": "./web-types.json",
	"dependencies": {
		"vue-docgen-web-types": "^0.1.7",
	},
}

This will generate an autocomplete helper file for the IDE which also includes things like @Prop etc

JasonLandbridge avatar Mar 13 '22 12:03 JasonLandbridge