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

Error: Must use import to load ES Module #45

Closed
rootlinux2 opened this issue Jun 29, 2022 · 1 comment
Closed

Error: Must use import to load ES Module #45

rootlinux2 opened this issue Jun 29, 2022 · 1 comment

Comments

@rootlinux2
Copy link

Hi, I'm facing this error

Error: Must use import to load ES Module: /home/rootlinux2/Documents/fr-bs-atoms/node_modules/lowlight/index.js
require() of ES modules is not supported.

I'm using the latest version of lowlight "lowlight": "^2.6.1"

@wooorm
Copy link
Owner

wooorm commented Jun 29, 2022

  1. The error message tells you what to do.
  2. You can read similar issues: is possible to release with a cjs module? #38, How do you use lowlight with hljs v11 support with cjs/node? #37.
  3. Theres a link in the readme with more information: https://github.com/wooorm/lowlight#install.

@wooorm wooorm closed this as not planned Won't fix, can't repro, duplicate, stale Jun 29, 2022
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