NotionX / react-notion-x

Fast and accurate React renderer for Notion. TS batteries included. ⚡️
https://react-notion-x-demo.transitivebullsh.it
MIT License
4.75k stars 552 forks source link

Alternative that works well with Remix? #490

Open IDrissAitHafid opened 1 year ago

IDrissAitHafid commented 1 year ago

Remix doesn't support ESM modules by default, and trying to use react-notion-x with Remix results in a lot of errors/perf issues.

So, I'm wondering if there's is another library for rendering Notion components that works well with Remix?

Thank you

djgrant commented 1 year ago

You can add to your remix.config.js:

{
  serverDependenciesToBundle: [/.*/]
}

This will bundle ESM modules.

IDrissAitHafid commented 1 year ago

That's what I did but it ended up eating a lot of memory locally! I guess there's no way out for the moment.

I'm waiting for the ESM to be the default on Remix, I hope this solves my issue!

Thank you @djgrant :pray: