Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated Prettier Version in nx #29701

Open
4 tasks
joh-klein opened this issue Jan 21, 2025 · 0 comments
Open
4 tasks

Outdated Prettier Version in nx #29701

joh-klein opened this issue Jan 21, 2025 · 0 comments
Assignees
Labels

Comments

@joh-klein
Copy link

Current Behavior

The default version of Prettier used in nx (version "20.3.2") is outdated, specifically pointing to version 2.6.2. This version of Prettier was released over two years ago (in March 2022) and lacks the support for modern JavaScript/TypeScript features introduced in Prettier versions 3.x. This can cause compatibility problems, such as formatting incompatibility with newer TypeScript syntax, as well as missing bug fixes and enhancements.

Expected Behavior

Prettier's version should default to a modern, updated version (e.g., 3.4.2) that supports the latest JavaScript and TypeScript features.

GitHub Repo

No response

Steps to Reproduce

  1. npx create-nx-workspace --preset=angular-monorepo
  2. Inspect the package.json file for Prettier (installed in devDependencies).
    • The version of Prettier will be shown as ^2.6.2.

Nx Report

NX   Report complete - copy this into the issue template

Node           : 22.13.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.9.2

nx                     : 20.3.2
@nx/js                 : 20.3.2
@nx/jest               : 20.3.2
@nx/eslint             : 20.3.2
@nx/workspace          : 20.3.2
@nx/angular            : 20.3.2
@nx/cypress            : 20.3.2
@nx/devkit             : 20.3.2
@nx/eslint-plugin      : 20.3.2
@nx/module-federation  : 20.3.2
@nx/storybook          : 20.3.2
@nx/web                : 20.3.2
@nx/webpack            : 20.3.2
typescript             : 5.6.3
---------------------------------------
Registered Plugins:
@nx/cypress/plugin
@nx/eslint/plugin
@nx/storybook/plugin
---------------------------------------
Community plugins:
angular-eslint : 19.0.2

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@AgentEnder AgentEnder added the scope: misc Misc issues label Jan 22, 2025
@AgentEnder AgentEnder self-assigned this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants