Skip to content

[module] server types are broken when executing test:types #831

@markbrockhoff

Description

@markbrockhoff

Hi, I noticed that the typecheck for the module template seems to be broken.

Reproduction:

  1. Create a new module by running pnpx nuxi init -t module module-name
  2. Install the dependencies
  3. Add something to the runtime/server directory that imports from "#imports"
    E.g.:
    import { defineEventHandler } from '#imports'
    
    export default defineEventHandler((event) => { console.log(event) })
  4. Run pnpm dev:prepare to prepare the types
  5. Run pnpm test:types

Result:
image

Within VS Code everything works as expected and no type errors are shown.

Installed TS version: 5.5.4
Installed vue-tsc version: 2.0.29

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions