-
Notifications
You must be signed in to change notification settings - Fork 118
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
Types not correctly imported #1
Closed
sifferhans opened this issue
Nov 7, 2023
· 6 comments
· Fixed by nitrojs/nitro#1908 or unjs/unimport#303
Closed
Types not correctly imported #1
sifferhans opened this issue
Nov 7, 2023
· 6 comments
· Fixed by nitrojs/nitro#1908 or unjs/unimport#303
Comments
This seems like an issue in |
added a workaround but we still need to address in unimport... (cc: @antfu) |
What is the workaround? The server utilities have correct typings but the |
Same problem |
antfu
added a commit
to nitrojs/nitro
that referenced
this issue
Nov 13, 2023
8 tasks
This comment was marked as off-topic.
This comment was marked as off-topic.
@antfu nitrojs/nitro#1908 dont fixed this issua :/ i will test nitro 2.8.1 |
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems like the types generated in
.nuxt/types/nitro-imports.d.ts
imports from the wrong files.The utilities (setUserSession, getUserSession etc.) are being imported from the
.mjs
files as seen in the screenshot below.This causes everything to be typed as
any
, as in this githubEventHandler example:I guess this might have something to do with the way the utils are imported here?
The text was updated successfully, but these errors were encountered: