-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
fix(runtime-core): type ExposedKeys removed defined properties on com… #12697
Conversation
This change will break the existing test case in By the way, could you provide a test case or a minimal reproduction to clarify the issue this PR is addressing? Thanks! |
Size ReportBundles
Usages
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-ssr
@vue/reactivity
@vue/compiler-sfc
@vue/runtime-core
@vue/runtime-dom
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
I can confirm this issue using Webstorm LTS 2024.2.5 Build #WS-242.24807.6 ![]() It is however, only the case if I'm using class based components using vue-facing-decorator. Using the composition API, the component resolves correctly. We have a lot of older projects at our company for which there is no budget to convert them to composition API, so for us it is a pretty common and annoying problem. ![]() |
It took whole weekend to figure out where this issue with Intellij ideas came from. I will look at the tests when I have time again. Probably end of the week. |
Do you have any updates on this by any chance? |
Fixed the test. |
❌ Deploy Preview for vue-next-template-explorer failed. Why did it fail? →
|
|
||
// @ts-expect-error shouldn't be exposed | ||
vm.c | ||
vm.a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is not proper, both a
and b
should be exposed, see line 1618.
Trying to reproduce the issue weeks later fails with or without the modification. Language server doesn't display the errors anymore. There hasn't been any PHPStorm update, kinda of |
I would like to ask if this issue can be reopened since the issue still persists. The Github repo I created can be used as a reference, see my comment below. Also for reference: this screenshot is from one of my existing projects: ![]()
|
Em, well my so called fix didn't pass the test but the IDE issue went away with latest version of |
My colleagues and I just figured out that the issue disappears when you don't put If you do it like this, all component errors are fixed:
|
Fixes typo made in pull request #3399.
IDEs using Vue language service with TypeScript support will have all the local component variables displayed as red with an error
Vue: X does not exist on type
.ExposedKeys
will compare empty string ('') to extendExposed
type which will always fail cause builtin string can't extend custom class.Tested with:
PHPStrom 2024.3.1.1
TypeScript 5.7.3
Vue LS 2.2.0