Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't support ESM #9

Open
dessalines opened this issue Oct 15, 2024 · 3 comments
Open

Doesn't support ESM #9

dessalines opened this issue Oct 15, 2024 · 3 comments

Comments

@dessalines
Copy link

I'm getting this error when I try to use this library:

Error [ERR_REQUIRE_ESM]: require() of ES Module file:///home/xxx/git/lemmy-ui/node_modules/.pnpm/[email protected]/node_modules/mermaid/dist/mermaid.core.mjs not supported.

Instead change the require of file:///home/xxx/git/lemmy-ui/node_modules/.pnpm/[email protected]/node_modules/mermaid/dist/mermaid.core.mjs to a dynamic import() which is available in all CommonJS modules.

LemmyNet/lemmy-ui#2754

@agoose77
Copy link
Owner

I should return to this library and ensure that it works properly for ESM :) I'll make a note to do that soon. Please ping me if I don't get to it by next Friday?

@dessalines
Copy link
Author

Sure, thx!

@dessalines
Copy link
Author

@agoose77 here's the ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants