You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nx format:write
Overwrite un-formatted files
Run command using --base=[SHA1] (affected by the committed,
uncommitted and untracked changes):
--base Base of the current branch (usually main) [string]
or using --base=[SHA1] --head=[SHA2] (affected by the
committed changes):
--base Base of the current branch (usually main) [string]
--head Latest commit of the current branch (usually HEAD)
[string]
or using:
--files Change the way Nx is calculating the
affected command by providing directly
changed files, list of files delimited by
commas or spaces [string]
--uncommitted Uncommitted changes [boolean]
--untracked Untracked changes [boolean]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--exclude Exclude certain projects from being
processed [string]
--libs-and-apps Format only libraries and applications
files. [boolean]
--projects Projects to format (comma/space
delimited) [string]
--all Format all projects [boolean]
Find more information and examples at
https://nx.dev/nx/format-write
Error: Cannot find module '/Users/maxime/Repo/monorepo/node_modules/prettier/bin-prettier'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:1096:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:1089:15)
at resolveExports (node:internal/modules/cjs/loader:565:14)
at Module._findPath (node:internal/modules/cjs/loader:634:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27)
at Function.resolve (/Users/maxime/Repo/monorepo/node_modules/v8-compile-cache/v8-compile-cache.js:164:23)
at Object.<anonymous> (/Users/maxime/Repo/monorepo/node_modules/nx/src/command-line/format/format.js:18:31)
at Module._compile (/Users/maxime/Repo/monorepo/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32) {
code: 'MODULE_NOT_FOUND',
path: '/Users/maxime/Repo/monorepo/node_modules/prettier/package.json'
}
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Yes @curthipster ! Indeed it's a duplicate! I will close this in favor of the feature request, since it's more of a feature request to upgrade to prettier@3!
Current Behavior
Cannot run
nx format:write
anymore.https://prettier.io/blog/2023/07/05/3.0.0#api
Expected Behavior
nx format still works.
GitHub Repo
No response
Steps to Reproduce
nx format
Nx Report
Failure Logs
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: