Open karishag opened 2 months ago
Hey @karishag did you find a way around this in the end? I can't switch my project to ESM so I think I need to find an alternative client, or fork this repo and un-esm it 🤷
@runticle in my case the project was CommonJS, I experimented a lot to continue using the same project but didn't work. Ultimately I've to create a new one with esm
Description
On the server side, when using
notion-client
package I get therequire() of ES Module
not supported error. I modified tsconfig.json file compilerOptions to this:Also installed esm module, and set "type": "module" in package.json file but nothing helps.
Notion Test Page ID
067dd719-a912-471e-a9a3-ac10710e7fdf