-
-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Labels
bugSomething isn't workingSomething isn't workingdependenciesPull requests that update a dependency filePull requests that update a dependency file
Description
Hi,
I just upgraded from 4.1.1 to 4.2.0 and I've got error while commiting:
Error [ERR_REQUIRE_ESM]: require() of ES Module /(...)/node_modules/tinyexec/dist/main.js from /(...)/node_modules/pretty-quick/lib/scms/git.js not supported.
Instead change the require of main.js in /(...)/node_modules/pretty-quick/lib/scms/git.js to a dynamic import() which is available in all CommonJS modules.
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at Object. (/(...)/node_modules/pretty-quick/lib/scms/git.js:7:20) {
code: 'ERR_REQUIRE_ESM'
Versions:
Prettier: 3.5.3
Node: 22.12.0
Yarn: 4.9.1
Any clues what have gone wrong?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdependenciesPull requests that update a dependency filePull requests that update a dependency file