Open megasmack opened 15 hours 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.
Hello @megasmack :wave: 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: Salesforce Extension Version in VS Code: Salesforce CLI Version: OS and version: VS Code version: Most recent version of the extensions where this was working:
Here's an example of a set of required info that will pass the validation: Salesforce Extension Version in VS Code: 60.13.0 Salesforce CLI Version: @salesforce/cli/2.42.6 darwin-arm64 node-v18.18.2 OS and version: MacOS Sonoma 14.5 VS Code version: 1.89.1 Most recent version of the extensions where this was working: 60.11.0
A few more things to check:
Developer: Toggle Developer Tools
in the command palette.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"
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. https://github.com/forcedotcom/cli/issues/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".