NuxtN
Nuxt8mo ago
4 replies
Mole

Import FetchError type

Hi! What is the current method of importing
FetchError
type?

Ref: ❓・helpFetchError type
Ref: https://github.com/nuxt/nuxt/issues/26628

I do not think
FetchError
should be imported from
ofetch
. Using error type from package may fail
instanceof
. It is also explicitly recommended to use
$fetch
instead of importing from
ofetch
.
image.png
Was this page helpful?