-
Notifications
You must be signed in to change notification settings - Fork 405
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
npm install
is failing due eslint dependency
#5953
Comments
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. |
Hello @megasmack 👋 It looks like you didn't provide all the required basic info in your issue. If you haven't already, please provide the following info: Here's an example of a set of required info that will pass the validation: A few more things to check:
Thank you! |
This issue has been linked to a new work item: W-17275130 |
@megasmack I have conformed the error you are seeing in the generated project and have logged a bug. The workaround is to change eslint to version 8.57.0 and change script postinstall to "husky init" |
Once it is installed how do we remove it. I have disabled the extension. I don't know how it help to fix something in postinstall once it has been installed? |
@tenacoder After updating the |
@tenacoder Hi, Peter meant to modify the postinstall script in the package.json of your sf project. You didn't need to disable the extension, that has no effect in running npm install in a project |
Summary
After creating a project using the VSCode Extension, I get an error when running
npm install
.Steps To Reproduce:
npm install
.Expected result
npm should install all dependencies for the project
Actual result
I get the following error:
Additional information
Salesforce Extension Version in VS Code: 62.5.1
Salesforce CLI Version: @salesforce/cli/2.66.7 darwin-arm64 node-v22.11.0
OS and version: MacOS Sequoia 15.0.1 14.5
VS Code version: 1.95.3
Most recent version of the extensions where this was working: No idea.
We looked into this issue on the CLI repo where it looks like it's an issue in the extension versus the CLI. forcedotcom/cli#3098
The main thing I spotted was that creating a project directly through the sf cli creates a package.json using "eslint": "^8.57.0" while VSCode plugin generates a package.json using "eslint": "^9.9.1". This looks like it's conflicting with the eslint-plugin-lwc package that requires "eslint": "^8.57.0".
The text was updated successfully, but these errors were encountered: