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

Installing the Apex Prettier Plugin using npm throws an error. #3863

Closed
kaustubhdapurkar opened this issue Feb 26, 2022 · 4 comments
Closed

Comments

@kaustubhdapurkar
Copy link

kaustubhdapurkar commented Feb 26, 2022

Summary

NPM throws error while installing prettier using the npm install --save-dev --save-exact prettier prettier-plugin-apex in a new SFDX project.

Steps To Reproduce:

  1. Create a new project with manifest.
  2. Run the npm install --save-dev --save-exact prettier prettier-plugin-apex command in the terminal.

Expected result

The prettier module for apex should get installed successfully.

Actual result

Running the command throws an error.

Additional information

image

Workaround I do to fix this

To fix this, I navigate to the package.json file in the project and change the prettier-plugin-apex version from 1.10.1 to 1.10.0 and run the npm command again and the command runs successfully.

Salesforce Extension Version in VS Code: Salesforce Extension Pack (Expanded)
v54.2.0

SFDX CLI Version: sfdx-cli/7.137.1 win32-x64 node-v16.13.2

OS and version: Windows 11 Version 10.0.22000.493

@randi274
Copy link
Contributor

Thanks for reporting this! We've fixed this in our templates library, and once we update that (which is a WIP), this should be fixed as well.

@randi274
Copy link
Contributor

@kaustubhdapurkar is this working for you now? We've updated templates, so I would expect this is ok now as well.

@mohanraj-r
Copy link
Contributor

@kaustubhdapurkar This should be fixed now with the recent update. Please check and reopen this issue with details if it is still not resolved.

@vamsisfdev
Copy link

Hello, I am still having the error with using the same

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants