Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Isvue-tsc --noEmit redundant inbuild script? #100

Closed
Labels
bugSomething isn't working
@LeDomantas

Description

@LeDomantas

It seems that on newly created Vue 3 projects simply runningnpm run build does not perform a typecheck, in fact the result is identical as running only the second part of the build script (vite build).

Steps to reproduce:

  1. Runnpm init vue@3.1.10
  2. Answer yes to all questions
  3. Create a TypeScript error in one of the project files. For example go toTheWelcome.vue and at the end ofscript tag addconst a: number = "888";
  4. Runnpm run build ("build": "vue-tsc --noEmit && vite build")

Expected result - build failure due to ts error
Current result - successful build

Can you please clarify if my interpretation thatvue-tsc --noEmit inbuild script is supposed to perform type check is wrong or if it was in fact meant to perform a typecheck?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp