-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
webstorm does not correctly display type of globally injected properties #19399
Comments
Would you provide a reproduction? 🙏 |
@danielroe Thanks for responding so quick! 🔥 I have created a CodeSandbox here with a fresh installation of nuxt using
I have attached a video of the issue, using the same repository as the code sandbox. Screen.Recording.2023-03-03.at.17.52.39.mov |
First, you should not need to type this yourself - Nuxt types provided properties automatically. Second, this works fine for me both in the CodeSandbox and locally. I think this is likely a WebStorm bug - it probably needs to be updated to use |
Yes, I will do that. Automatic types are not working for me either, which is why I did this to start with. |
Environment
Darwin
v14.18.1
3.2.2
2.2.2
yarn@1.22.17
vite
modules
,build
,runtimeConfig
,vite
@nuxt/content@2.4.3
,@pinia/nuxt@0.4.6
,nuxt3-lazy-load@1.0.2
-
Reproduction
Documentation issue.
Describe the bug
When injecting helpers into the NuxtApp instance through a plugin, the documentation suggests adding a module declaration for
vue
.It seems that this should be changed to
@vue/runtime-core
for IDEs to correctly detect the type within templates.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: