Skip to content

启动时 pnpm run dev 不会检查出ts错误 #528

@vaynevayne

Description

@vaynevayne

Describe the bug

Image
"dev": "vite --mode development --host",

Reproduction

执行 pnpm run dev ,
控制台无错误, 但是vscode 显示当前打开的文件 是有错误的

Expected behavior

控制台输出这个错误

System Info

System:
    OS: macOS 14.4.1
    CPU: (8) arm64 Apple M2
    Memory: 77.78 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.16.0 - ~/.volta/tools/image/node/22.16.0/bin/node
    Yarn: 1.22.22 - ~/.volta/tools/image/yarn/1.22.22/bin/yarn
    npm: 10.9.2 - ~/.volta/tools/image/node/22.16.0/bin/npm
    pnpm: 9.4.0 - ~/.volta/bin/pnpm
  Browsers:
    Chrome: 138.0.7204.50
    Safari: 17.4.1

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions