Skip to content

Vue 2.7 components.d.ts module augmentation #463

Closed
@jfrs

Description

@jfrs

Vue 2.7 no longer needs @vue/runtime-core, which means that the generated components.d.ts isn't recognised by Volar.

I've replaced

import '@vue/runtime-core'

export {}

declare module '@vue/runtime-core' {

with

export {}

declare module 'vue' {

and that fixes the issue.

I don't know if we can autodetect the version, otherwise maybe an option to override the module used here?

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