Skip to content

ERR: '"vue-router"' has no exported member named 'routes'. #54

@lyimoexiao

Description

@lyimoexiao

Describe the bug

I am creating a new project with this template by using command

pnpx degit antfu-collective/vitesse-lite my-vitesse-app
cd my-vitesse-app
pnpm i

It works probably but after i typed git init the project throw this error out.

Image

I tried reinstall the dependences but it doesn't work.

Reproduction

Just creating a new project using pnpx degit antfu-collective/vitesse-lite my-vitesse-app and initialize a new git project using git init.

System Info

Progress: resolved 1, reused 0, downloaded 1, added 1, done

  System:
    OS: Windows 11 10.0.26100
    CPU: (14) x64 Intel(R) Core(TM) Ultra 5 225H
    Memory: 10.99 GB / 31.43 GB
  Binaries:
    Node: 22.16.0 - ~\AppData\Local\fnm_multishells\4288_1749273769494\node.EXE
    npm: 10.9.2 - ~\AppData\Local\fnm_multishells\4288_1749273769494\npm.CMD
    pnpm: 10.11.1 - ~\AppData\Local\fnm_multishells\4288_1749273769494\pnpm.CMD
  Browsers:
    Edge: Chromium (136.0.3240.92)

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

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