-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
With Typescript shims not working for: this.$dialog, this.$confirm, this.$toast #6624
Comments
@Burtsev-Alexey I cannot see in your reproducer what is not working. FYI @mertsincan |
Yes, it effects only compilation errors.
I have used the one that was provided in link when I was creating an issue. I have not realized I need to change version...
Because StackBlitz doesnt show syntax (compilation) errors... You need to open project in IDE (I use VSCode) |
Hi @Burtsev-Alexey , I've updated your reproducer to primevue 4.1.1 (and removed the StepperPanel import which is no longer exported) and ran According to your screenshots it looks like you are using a different project locally - as the affected component is called |
@sceee You are right, I found the "evil", it was https://github.com/imcvampire/vue-axios dependency that is "cleaning up" ComponentCustomProperties Sorry for inconvenience, issue closed. |
Shims are declared in module 'vue' doesnt work with options API, I changed it to be module '@vue/runtime-core' - and it works.
Reproducer
https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-gss6mp?file=src%2FApp.vue
PrimeVue version
4.1.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: