Skip to content

[v4]: typecheck on build does not work #32823

@paro-paro

Description

@paro-paro

Environment


  • Operating System: Linux
  • Node Version: v20.19.1
  • Nuxt Version: 4.0.2
  • CLI Version: 3.27.0
  • Nitro Version: 2.12.4
  • Package Manager: pnpm@8.15.6
  • Builder: -
  • User Config: compatibilityDate, devtools, typescript
  • Runtime Modules: -
  • Build Modules: -

Reproduction

reproduction

Describe the bug

Nuxt will not typecheck the codebase when setting the typescript.typeCheck to build on nuxt config.

I have placed both typescript errors in app.vue and server/routes/health.ts files and no errors are thrown on build. Running nuxt typecheck directly will only throw the app.vue error and not the one on the server directory.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions