Closed bklik closed 11 months ago
Hey there, quick question: how did you got import TestComponent from './TestComponent.vue';
correctly infer the component type?
script setup
should be working with the soon-to-be-released beta, but I can't find a pretty guide to get rid of the Double File Component fashion we're been using up until now due to TS not being able to infer Vue files exported type
Closing due to lack of response
Software version
OS: macOS 12.4 Node: 16.15.1 NPM: 8.11.0
Any other software related to your bug: @quasar/testing
What did you get as the error?
What were you expecting?
No error at all.
What steps did you take, to get the error?
Make a
TestComponent.vue
Make a
TestComponent.spec.ts
Run
quasar dev
Quasar dev will throw the TS2339 error.
Note: you can run
quasar test --unit jest
just fine without error.Work Around
If you write your
TestComponent.vue
like this, you will not get the error.