When I add plugins: [logger()] to my export const $fetch = createFetch({...}) object, it seems to break the types when using the $fetch() function. I get an Argument of type 'string' is not assignable to parameter of type 'never'.ts(2345) error on the path I'm passing to it and no intellisense on the rest of the function properties.
Everything goes back to working when i comment out the plugins: [logger()] line. Let me know if you'd like any more details.
When I add
plugins: [logger()]
to myexport const $fetch = createFetch({...})
object, it seems to break the types when using the$fetch()
function. I get anArgument of type 'string' is not assignable to parameter of type 'never'.ts(2345)
error on the path I'm passing to it and no intellisense on the rest of the function properties.Everything goes back to working when i comment out the
plugins: [logger()]
line. Let me know if you'd like any more details.