I'm following Notion's instructions to use the Notion API. From the terminal, I have installed the client library ("npm install"). The problem is when I run the script ("node index.js") I get the following error message:
import { Client } from "@notionhq/client"
^^^^^^
SyntaxError: The requested module '@notionhq/client' does not provide an export named 'Client'
And for reference my package.json file looks like this:
{
"name": "notion-example",
"type": "module",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"@notionhq/client": "^0.1.9"
}
}
Can someone help me to understand how to resolve this error? I'm still fairly new to coding so any feedback would be appreciated, thanks!