You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Uncaught TypeError: Cannot read properties of undefined (reading 'call')
at Client2.request (https://esm.sh/v82/@notionhq/client@1.0.4/deno/client.development.js:732:130)
at Object.list (https://esm.sh/v82/@notionhq/client@1.0.4/deno/client.development.js:684:25)
at file:///Library/Source/flamingo/src/index.ts:3:32
Additional info
esm.sh version: v82
Deno version: v1.22.0
The text was updated successfully, but these errors were encountered:
@aslilac try const notion = new Client({ auth: "xxx", fetch }), this works for me. i guess the Client doesn't use the fetch api by default since the node.js only support fetch after 18, the node-fetch can not work in deno for now.
I tried using jspm instead (which worked), but now that I look at the import map they suggested a little closer, I see what's going on: they just use node-fetch/browser be default (which seems to basically just export fetch and its associated globals)
Failing module
Error message
After running
deno run
I got this:Additional info
The text was updated successfully, but these errors were encountered: