Skip to content

Type errors with Vue 3.5.13 #1

@mitar

Description

@mitar

With Vue 3.5.13 and @allindevelopers/vue-local-scope 0.2.2, using vue-tsc 2.2.0, I am getting the following type error:

node_modules/@allindevelopers/vue-local-scope/dist/local-scope.component.vue.d.ts:1:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: __VLS_intrinsicElements, __VLS_directiveBindingRestFields, __VLS_unref, __VLS_IntrinsicElements, __VLS_Element, __VLS_GlobalComponents, __VLS_GlobalDirectives, __VLS_IsAny, __VLS_PickNotAny, __VLS_WithComponent, __VLS_FunctionalComponentProps, __VLS_IsFunction, __VLS_UnionToIntersection, __VLS_OverloadUnionInner, __VLS_OverloadUnion, __VLS_ConstructorOverloads, __VLS_NormalizeEmits, __VLS_PrettifyGlobal, __VLS_PickFunctionalComponentCtx, __VLS_UseTemplateRef

1 declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
  ~~~~~~~

  node_modules/.vue-global-types/vue_3.5_0_0_0.d.ts:2:1
    2 export {};
      ~~~~~~
    Conflicts are in this file.

node_modules/@allindevelopers/vue-local-scope/dist/local-scope.component.vue.d.ts:284:58 - error TS2344: Type '__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>' does not satisfy the constraint '(...args: any) => any'.
  Type 'NonNullable<T> | ((...args: any[]) => any)' is not assignable to type '(...args: any) => any'.
    Type 'NonNullable<T>' is not assignable to type '(...args: any) => any'.
      Type '{}' provides no match for the signature '(...args: any): any'.

284     function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@allindevelopers/vue-local-scope/dist/local-scope.component.vue.d.ts:285:57 - error TS2344: Type '__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>' does not satisfy the constraint '(...args: any) => any'.
  Type 'NonNullable<T> | ((...args: any[]) => any)' is not assignable to type '(...args: any) => any'.
    Type 'NonNullable<T>' is not assignable to type '(...args: any) => any'.
      Type '{}' provides no match for the signature '(...args: any): any'.

285     function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions