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
generate: Autoimported $fetch not type friendly #14677
Labels
Comments
some-user123
changed the title
Autoimported $fetch not type friendly
generate: Autoimported $fetch not type friendly
Aug 23, 2022
Would you provide a reproduction? 🙏 |
Please find it here: https://github.com/some-user123/nuxt3-typecheck
|
I can't reproduce: https://stackblitz.com/edit/github-hdikgx?file=pages%2Findex.vue |
danielroe
added
bug
cli
🔨 p3-minor-bug
workaround available
and removed
needs reproduction
pending triage
labels
Aug 23, 2022
This should have been resolved in nuxt/framework#8848. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Windows_NT
v16.14.2
3.0.0-rc.8
pnpm@7.8.0
vite
-
-
-
Reproduction
Describe the bug
According to ohmyfetch docu
$fetch
accepts a type parameter.Using it in
nuxi generate
with auto import yields a type error:Expected 0 type arguments, but got 1. (ts2558)
If explicitly imported (
import { $fetch } from 'ohmyfetch'
) the type parameter is accepted.Additional context
Bug occurs only when using
nuxi generate
!Logs
No response
The text was updated successfully, but these errors were encountered: