Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No component props hints #13

Open
prokhn opened this issue Jan 21, 2022 · 1 comment
Open

No component props hints #13

prokhn opened this issue Jan 21, 2022 · 1 comment

Comments

@prokhn
Copy link

prokhn commented Jan 21, 2022

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


@JasonLandbridge
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants