You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some declarations use just 'named' imports, which cause resolution problems when the project is restored with pnpm and no shamefully-hoist as the dependencies are not really present in the node_modules.
This includes files like nitro-imports.d.ts (h3)nitro-nuxt.d.ts (nuxt/schema, h3, ...)nitro-config.d.ts (defu)nitro-routes.d.ts (nitropack)
Additional context
I partially tried to fix this in PR 2207, but noticed since then that there are a lot more of occurrences. I find this strange because of nuxt/nuxt 14146.
With this problem, I can not create server handler with defineEventHandler without type problems.
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
tried with
3.10.3(vite@5.1.6)
Reproduction
https://stackblitz.com/edit/github-bshclz?file=.nuxt%2Ftypes%2Fnitro-imports.d.ts%3AL128
Describe the bug
Some declarations use just 'named' imports, which cause resolution problems when the project is restored with
pnpm
and noshamefully-hoist
as the dependencies are not really present in thenode_modules
.This includes files like
nitro-imports.d.ts (h3)
nitro-nuxt.d.ts (nuxt/schema, h3, ...)
nitro-config.d.ts (defu)
nitro-routes.d.ts (nitropack)
Additional context
I partially tried to fix this in PR 2207, but noticed since then that there are a lot more of occurrences. I find this strange because of nuxt/nuxt 14146.
With this problem, I can not create server handler with
defineEventHandler
without type problems.Logs
No response
The text was updated successfully, but these errors were encountered: