Skip to content

Vue-router can not work properly in the typescript2.0 environment #1170

@ulivz

Description

@ulivz

I use vue2.0 and typescript2.0, as well as vue-router2.0 as my development technology stack, which is my project template —— template,You run this project (npm run dev), you will find the error as follows:

vue-typescript-template-ui\node_modules\vue-router\types\router.d.ts
(2,10): error TS2305: Module '"vue"' has no exported member 'ComponentOptions'.
.......

Does it have a problem with the type declaration file of vue-router2.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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy