N
Nuxt2y ago
Yaiko

[3.2.2] `createError` on Api

When using return/throw createError() in Api routes is returning the error page instead of being parsed to JSON, it used to work well before 3.2.2
3 Replies
Fabian B.
Fabian B.2y ago
Hi, can you create a GitHub Issue with a minimal reproduction? https://nuxt.com/docs/community/reporting-bugs#create-a-minimal-reproduction https://github.com/nuxt/nuxt/issues thanks! 😊
GitHub
Issues · nuxt/nuxt
Nuxt is an intuitive and extendable way to create type-safe, performant and production-grade full-stack web apps and websites with Vue 3. - Issues · nuxt/nuxt
Nuxt
Reporting Bugs
One of the most valuable roles in open source is taking the time to report bugs helpfully.
Yaiko
Yaiko2y ago
@Fabian B. I'm trying but how can be possible to change the nitro version? for example I'm trying to use nuxt 3.1.1 but not with nitro 2.2.2
Fabian B.
Fabian B.2y ago
Have you removed your lockfile and .nuxt folder before installing a different version? Otherwise try to manually install a specific version of nitro
Want results from more Discord servers?
Add your server