N
Nuxt9mo ago
Gosu

Types errors in Storybook and tests after upgrade nuxt to 3.11.0

Hello there! I upgrade the nuxt version from 3.9.0 to 3.11.0, but now when I run npm run tsc I get a lot of errors in all my .stories.ts and tests *.spec.ts. I'm using storybook and vitests and import component throw this error components/cp/CpCardEta/CpCardEta.spec.ts:4:23 - error TS2307: Cannot find module './CpCardEta.vue' or its corresponding type declarations. node_modules/vue/jsx.d.ts:15:22 - error TS2430: Interface 'IntrinsicElements' incorrectly extends interface 'NativeElements'. Types of property 'a' are incompatible. Type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>' is not assignable to type 'AnchorHTMLAttributes & ReservedProps'. Type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>' is not assignable to type 'AnchorHTMLAttributes'. Types of property 'style' are incompatible. Type 'CSSProperties' is not assignable to type 'StyleValue'. Type 'Properties<string | number, string & {}>' is missing the following properties from type 'StyleValue[]': length, pop, push, concat, and 27 more. 15 export interface IntrinsicElements extends NativeElements { ~~~~~~~~~~~~~~~~~ node_modules/vue/jsx.d.ts:15:22 - error TS2590: Expression produces a union type that is too complex to represent. 15 export interface IntrinsicElements extends NativeElements { ~~~~~~~~~~~~~~~~~ node_modules/vue/jsx.d.ts:20:22 - error TS2320: Interface 'IntrinsicAttributes' cannot simultaneously extend types 'ReservedProps' and 'Attributes'. Named property 'key' of types 'ReservedProps' and 'Attributes' are not identical. 20 export interface IntrinsicAttributes extends ReservedProps {} ~~~~~~~~~~~~~~~~~~~ 4 import CpCardEta from './CpCardEta.vue'
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server