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 intellisense of Global Components #1469

Closed
abitwhy opened this issue Jun 16, 2022 · 2 comments
Closed

No intellisense of Global Components #1469

abitwhy opened this issue Jun 16, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@abitwhy
Copy link

abitwhy commented Jun 16, 2022

image
image

It must be caused by the change:

- declare module 'vue' {
+ declare module '@vue/runtime-core' { 

Because rollback will make intellisense work.

@johnsoncodehk johnsoncodehk added pending triage bug Something isn't working and removed pending triage labels Jun 16, 2022
@abitwhy
Copy link
Author

abitwhy commented Jul 26, 2022

Besides Volar's support, another requirement is you can access the package like '@vue/runtime-core' (even if you can't, it won't warn).

You can achieve that by:

  • add the package directly (as devDependence)
  • setting shamefully-hoist=true in .npmrc (for pnpm project)

@johnsoncodehk You may need to declare this in your plugin introduction page, like here.

Reference: shamefully-hoist.

@Anoesj
Copy link

Anoesj commented Aug 24, 2022

Besides Volar's support, another requirement is you can access the package like '@vue/runtime-core' (even if you can't, it won't warn).

You can achieve that by:

  • add the package directly (as devDependence)
  • setting shamefully-hoist=true in .npmrc (for pnpm project)

@johnsoncodehk You may need to declare this in your plugin introduction page, like here.

Reference: shamefully-hoist.

Thanks! I‘m using pnpm, so packages aren‘t hoisted by default. This should be added to the docs indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants