forcedotcom / cli

Salesforce CLI
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/
BSD 3-Clause "New" or "Revised" License
493 stars 78 forks source link

New project template has invalid version of prettier-plugin-apex #1357

Closed steals closed 2 years ago

steals commented 2 years ago

Summary

New project created with sfdx force:project:create contains invalid version of prettier-plugin-apex that result in No matching version found for prettier-plugin-apex@^1.10.1. error when run npm install

Steps To Reproduce:

  1. Create a new sfdx project with sfdx force:project:create
  2. run npm install in the terminal

Expected result

npm install finishes without error

Actual result

npm install throws the error No matching version found for prettier-plugin-apex@^1.10.1.

System Information

{
        "cliVersion": "sfdx-cli/7.133.0",
        "architecture": "darwin-x64",
        "nodeVersion": "node-v16.13.1",
        "pluginVersions": [
                "@muenzpraeger/sfdx-plugin 0.5.0",
                "@oclif/plugin-autocomplete 0.3.0 (core)",
                "@oclif/plugin-commands 1.3.0 (core)",
                "@oclif/plugin-help 3.3.1 (core)",
                "@oclif/plugin-not-found 1.2.6 (core)",
                "@oclif/plugin-plugins 1.10.11 (core)",
                "@oclif/plugin-update 1.5.0 (core)",
                "@oclif/plugin-warn-if-update-available 1.7.3 (core)",
                "@oclif/plugin-which 1.0.4 (core)",
                "@salesforce/lwc-dev-mobile 1.4.0",
                "@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
                "alias 1.2.0 (core)",
                "apex 0.7.0 (core)",
                "auth 1.8.0 (core)",
                "config 1.3.14 (core)",
                "custom-metadata 1.0.12 (core)",
                "data 0.6.8 (core)",
                "generator 1.2.1 (core)",
                "info 1.2.0 (core)",
                "limits 1.3.0 (core)",
                "org 1.11.0 (core)",
                "salesforce-alm 53.7.2 (core)",
                "schema 1.1.0 (core)",
                "sfdmu 4.12.3",
                "sfdx-cli 7.133.0 (core)",
                "source 1.7.0 (core)",
                "telemetry 1.4.0 (core)",
                "templates 52.7.0 (core)",
                "trust 1.1.0 (core)",
                "user 1.7.0 (core)"
        ],
        "osVersion": "Darwin 21.3.0"
}

See related https://github.com/forcedotcom/cli/issues/1284

github-actions[bot] commented 2 years ago

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

uip-robot-zz commented 2 years ago

This issue has been linked to a new work item: W-10427187

maggiben commented 2 years ago

There is an open PR to fix this issue here: https://github.com/forcedotcom/salesforcedx-templates/pull/416 the repo is owned by PDT team