Replies: 1 comment 3 replies
-
It's hard to help on these issues without a small repro unfortunately (using local code, not importing third-party libs). Usually ESM libs can work if you use dynamic imports |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Docusaurus team,
We currently use Docusaurus version 2.3.1 on our project, and it has been working quite well so far.
Recently we updated a dependency that introduces a
solid-js
dependency on their end, and our Docusaurus builds started to fail. We started digging, and turns out when we update theexports
field in that dependency to point to the pre-compiled CJS (instead of the ESM one), it built successfully.I am aware that this issue #6520 is still ongoing, but am curious to how far the extent of ESM support will Docusaurus have?
But I'm wondering if anyone could help us figure out what exactly might be happening with Docusaurus that doesn't play nicely with some ESM modules. More logs below.
Build errors:
Beta Was this translation helpful? Give feedback.
All reactions