[ERR_REQUIRE_ESM]: require() of ES Module Error #226
Sanchitbajaj02
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If anyone is facing the issue mentioned in the reference screenshot, they can follow the below mentioned steps to fix this.
Problem
When someone tries to commit their changes, their commit message is checked by a library called Commitlint. This library allows the contributors to only enter message in a commit with the fixed sentence structure.
Due to some of its dependencies on the ESM modules while some of them on Commonjs, this issue is occuring.
Solution
Delete both
yarn.lock
file andnode_modules
folder.Run
yarn install
Try to proceed with your commit.
Beta Was this translation helpful? Give feedback.
All reactions