-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
Current Behavior
I get an exception when using Prettier 3.0.0 together with lerna 7.1.1
I run lerna publish and get this exception:
[2023-07-06T01:42:02.912Z] lerna ERR! TypeError: resolvedPrettier.resolveConfig.sync is not a function
[2023-07-06T01:42:02.912Z] lerna ERR! at maybeFormatFile (/jenkins/workspace/provisioning-tango-ui-sdk-publish/node_modules/lerna/dist/index.js:7464:49)
[2023-07-06T01:42:02.912Z] lerna ERR! at gitAdd (/jenkins/workspace/provisioning-tango-ui-sdk-publish/node_modules/lerna/dist/index.js:7487:5)
[2023-07-06T01:42:02.912Z] lerna ERR! at VersionCommand.updatePackageVersions (/jenkins/workspace/provisioning-tango-ui-sdk-publish/node_modules/lerna/dist/index.js:8318:17)
[2023-07-06T01:42:02.912Z] lerna ERR! at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2023-07-06T01:42:02.912Z] lerna ERR! at async Promise.all (index 0)
Expected Behavior
Expect publish to still work. I downgraded to Prettier 2.8.8 and all worked again.
Steps to Reproduce
Upgrade to Prettier 3.0.0 and run lerna publish
Failure Logs / Configuration
See above for error.
Environment
System:
OS: Windows 10 10.0.22000
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Binaries:
Node: 18.14.0 - C:\Program Files\nodejs\node.EXE
Yarn: 3.2.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 9.6.3 - C:\Program Files\nodejs\npm.CMD
Utilities:
Git: 2.41.0.
npmPackages:
lerna: ^7.1.1 => 7.1.1
JimminiKin, jdalrymple, revelt, YusukeHirao and jpolo