Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
markbrockhoff opened this issue Aug 1, 2024 · 0 comments
Open

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

markbrockhoff opened this issue Aug 1, 2024 · 0 comments

Comments

@markbrockhoff
Copy link

markbrockhoff commented Aug 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant