Closed brachkow closed 1 year ago
Hi @brachkow
Would you mind trying with v2.4.0-alpha.2 ? It might solve the issue as we improved the types. If that doesn't work, try to make a minimal reproduction online with https://stackblitz.com/github/vuejs/create-vue-templates/tree/main/typescript-vitest?file=src%2Fcomponents%2F__tests__%2FHelloWorld.spec.ts and we'll take a look
Yes, all errors disappeared. Thanks!
Describe the bug I import my component and trying to put it into mount. But then I get some incomprehensible error coming from mount type definition.
To Reproduce Code that causes bug can be found at https://github.com/tough-dev-school/lms-frontend-v2/blob/pnpm/src/components/VTextInput.test.ts, and output
Expected behavior Mount receives component and doesn't return type error.
Related information:
Additional context I guess the problem can be somewhere in my configuration — if I start project with
vite new
, I have no such error. I already aligned my package.json with the one fromvite new
, but it didn't help.