-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
Description
Environment
- Operating System: Darwin
- Node Version: v18.16.1
- Nuxt Version: 3.6.5
- Nitro Version: 2.5.2
- Package Manager: pnpm@8.5.0
- Builder: vite
- User Config: devtools, nitro
- Runtime Modules: -
- Build Modules: -
Reproduction
https://stackblitz.com/edit/nuxt-22572?file=nuxt.config.ts
- Open the repo and
nuxt.config.ts
- See no TS errors
- See errors when running as
defineEventHandler
is not defined but gives false type safety.
Describe the bug
In the nuxt.config.ts
, imports like defineEventHandler
or $fetch
are wrongly "available" as auto-imports on the type-level, while using them without importing them would throw.
Additional context
No response
Logs
No response
MickL and luc122c