react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

Alternative that works well with Remix?

Open IDrissAitHafid opened this issue 1 year ago • 2 comments

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

IDrissAitHafid avatar May 26 '23 18:05 IDrissAitHafid

You can add to your remix.config.js:

{
  serverDependenciesToBundle: [/.*/]
}

This will bundle ESM modules.

djgrant avatar Jun 07 '23 21:06 djgrant

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:

IDrissAitHafid avatar Jun 07 '23 22:06 IDrissAitHafid