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
Describe the bug
Adding this script tag to an Astro project, causes it to not run the script at all.
<script>
import {Client} from "@notionhq/client";
console.log("notion")
const notion = new Client({auth: "<secret>"});
</script>
And shows this error on the client
Uncaught SyntaxError: The requested module '/node_modules/@notionhq/client/node_modules/whatwg-url/lib/public-api.js?v=0c9a2969' does not provide an export named 'default' (at index.mjs?v=0c9a2969:4:8)
To Reproduce
Node version: v16.14.2
Notion JS library version: ^2.2.11
Steps to reproduce the behavior:
Import Client from library
The text was updated successfully, but these errors were encountered:
Describe the bug
Adding this script tag to an Astro project, causes it to not run the script at all.
And shows this error on the client
To Reproduce
Node version: v16.14.2
Notion JS library version: ^2.2.11
Steps to reproduce the behavior:
Import Client from library
The text was updated successfully, but these errors were encountered: