Grid catch TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
at GridSectionClient.<anonymous> (fetch.ts:16:1)
at step (error.ts:49:1)
at Object.next (error.ts:49:1)
at error.ts:49:1
at new Promise (<anonymous>)
at globalThis.webpackHotUpdatenft_city../node_modules/@what3words/api/dist/lib/transport/fetch.js.__awaiter (error.ts:49:1)
at GridSectionClient.fetchTransport [as transport] (fetch.ts:8:1)
at GridSectionClient.<anonymous> (abstract.ts:80:1)
at step (index.ts:5:1)
at Object.next (index.ts:5:1)
Grid catch Error: No bounding box specified
at GridSectionClient.<anonymous> (abstract.ts:50:1)
at step (index.ts:5:1)
at Object.next (index.ts:5:1)
at fulfilled (index.ts:5:1)
@King-Mufasa - We have published a fix for this issue, if you could add the latest @what3words/api@4.0.5 and you can remove isomorphic-unfetch and instead add cross-fetch this should resolve your issue.
here is my code
and if I change code like this,
the result is
how can I fix and get correct result?
this is my package.json