Allow for invalid URLs (possible in custom `fetch`)
cuibonobo opened this issue · 4 comments
cuibonobo commented
I've got a new problem : it returns ERR_INVALID_URL
when using an url
that starts with /
, which, using normal fetch
, would indeed be incorrect, but using a custom one in an SSR context, is proper.
Thanks
Originally posted by @KaKi87 in #6 (comment)
KaKi87 commented
Thanks, unfortunately, I'm now experiencing the following error :
ReferenceError: fetchAdapter is not defined
at /node_modules/@haverstack/axios-fetch-adapter/lib/index.d.ts:10:16
Thanks
cuibonobo commented
I reverted a change that may have been causing this. Version 0.12.0 was tested against an application where this library is used and the tests are now passing.
KaKi87 commented
Thanks, one last thing though ;
The following doesn't work :
import { createFetchAdapter } from '@haverstack/axios-fetch-adapter';
Only the following does :
import axiosFetchAdapter from '@haverstack/axios-fetch-adapter';
const { createFetchAdapter } = axiosFetchAdapter;
Thanks