-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I tried this:
The linter package fails to run due to ESM/CommonJS incompatibility. The package is defined as CommonJS (no "type": "module" in package.json) but uses ESM-only versions of chalk (v5) and ora (v8).
Error
Error [ERR_REQUIRE_ESM]: require() of ES Module chalk not supported.
Reproduction
- Install @eventcatalog/linter
- Run
npx eventcatalog-linter - Error occurs
This happened:
Error occurs instead of linter analysing code.
I expected this:
No response
Is there a workaround?
Downgrade dependencies to their last CommonJS-compatible versions:
- chalk: 5.x → 4.x
- ora: 8.x → 5.x
Anything else?
No response
EventCatalog Version
@eventcatalog/core@2.61.6
Node.js Version
v20.15.1
Platform(s)
No response
Community Notes
- Please vote by adding a 👍 reaction to the issue to help us prioritize.
- If you are interested to work on this issue, please leave a comment.
Metadata
Metadata
Assignees
Labels
No labels