-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
useFetch doesn't convert Date to string #28674
Copy link
Copy link
Closed
Description
Environment
- Operating System: Linux
- Node Version: v18.20.3
- Nuxt Version: 3.13.0
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: npm@10.2.3
- Builder: -
- User Config: compatibilityDate, devtools
- Runtime Modules: -
- Build Modules: -
Reproduction
https://stackblitz.com/edit/github-kayd36?file=utils%2Fget.ts
Describe the bug
If you return a Date from a api route the type doesn't get converted to string
Additional context
No response
Logs
No response
Reactions are currently unavailable