-
Notifications
You must be signed in to change notification settings - Fork 79
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
"sf project generate" command generates a new project with eslint dev dependencies broken in package.json #3222
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. |
Hey @carlosabella, what happens if you go into the newly created |
@iowillhoit Yes, that works. Now it can install correctly dependencies but I have a lot of deprecation warnings:
Specially, there are two red flag warnings:
Thanks. |
Thanks @carlosabella, I will get a ticket created to look into these dependency issues. FYI, the eslint v8 issue might take a bit to resolve, we are going to need to coordinate with other teams on that one. |
This issue has been linked to a new work item: W-17910015 |
Thanks a lot @iowillhoit |
Summary
When I create a new Salesforce Project using "sf project generate" command and I execute "npm install" to install dependencies, eslint dependencies are broken. I get this error:
npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: salesforce-app@1.0.0 npm error Found: @lwc/eslint-plugin-lwc@1.9.0 npm error node_modules/@lwc/eslint-plugin-lwc npm error dev @lwc/eslint-plugin-lwc@"^1.1.2" from the root project npm error npm error Could not resolve dependency: npm error peer @lwc/eslint-plugin-lwc@"^2.0.0" from @salesforce/eslint-config-lwc@3.7.1 npm error node_modules/@salesforce/eslint-config-lwc npm error dev @salesforce/eslint-config-lwc@"^3.2.3" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error /Users/carlosgarcia/.npm/_logs/2025-02-21T07_08_16_525Z-eresolve-report.txt npm error A complete log of this run can be found in: /Users/carlosgarcia/.npm/_logs/2025-02-21T07_08_16_525Z-debug-0.log
Steps To Reproduce
1.- In a terminal execute:
sf project generate --name MyProject --output-dir SalesforceProjects --manifest
2.- Navigate to the folder where the project has been created.
3.- Execute in the terminal:
npm install
Expected result
All dependencies installed correctly
Actual result
npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: salesforce-app@1.0.0 npm error Found: @lwc/eslint-plugin-lwc@1.9.0 npm error node_modules/@lwc/eslint-plugin-lwc npm error dev @lwc/eslint-plugin-lwc@"^1.1.2" from the root project npm error npm error Could not resolve dependency: npm error peer @lwc/eslint-plugin-lwc@"^2.0.0" from @salesforce/eslint-config-lwc@3.7.1 npm error node_modules/@salesforce/eslint-config-lwc npm error dev @salesforce/eslint-config-lwc@"^3.2.3" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error /Users/carlosgarcia/.npm/_logs/2025-02-21T07_08_16_525Z-eresolve-report.txt npm error A complete log of this run can be found in: /Users/carlosgarcia/.npm/_logs/2025-02-21T07_08_16_525Z-debug-0.log
Additional information
"2025-02-21T07_08_16_525Z-eresolve-report.txt" log:
`'Log files:
/Users/carlosgarcia/.npm/_logs/2025-02-21T07_08_16_525Z-debug-0.log
npm resolution error report
While resolving: salesforce-app@1.0.0
Found: @lwc/eslint-plugin-lwc@1.9.0
node_modules/@lwc/eslint-plugin-lwc
dev @lwc/eslint-plugin-lwc@"^1.1.2" from the root project
Could not resolve dependency:
peer @lwc/eslint-plugin-lwc@"^2.0.0" from @salesforce/eslint-config-lwc@3.7.1
node_modules/@salesforce/eslint-config-lwc
dev @salesforce/eslint-config-lwc@"^3.2.3" from the root project
Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.`
"/Users/carlosgarcia/.npm/_logs/2025-02-21T07_08_16_525Z-debug-0.log" log:
0 verbose cli /usr/local/bin/node /usr/local/bin/npm 1 info using npm@10.9.2 2 info using node@v22.13.1 3 silly config load:file:/usr/local/lib/node_modules/npm/npmrc 4 silly config load:file:/Users/carlosgarcia/Projects/SalesforceProjects/copaedge_21022025/.npmrc 5 silly config load:file:/Users/carlosgarcia/.npmrc 6 silly config load:file:/usr/local/etc/npmrc 7 verbose title npm install 8 verbose argv "install" 9 verbose logfile logs-max:10 dir:/Users/carlosgarcia/.npm/_logs/2025-02-21T07_08_16_525Z- 10 verbose logfile /Users/carlosgarcia/.npm/_logs/2025-02-21T07_08_16_525Z-debug-0.log 11 silly logfile start cleaning logs, removing 1 files 12 silly packumentCache heap:4345298944 maxSize:1086324736 maxEntrySize:543162368 13 silly logfile done cleaning log files 14 silly idealTree buildDeps 15 silly fetch manifest @lwc/eslint-plugin-lwc@^1.1.2 16 silly packumentCache full:https://registry.npmjs.org/@lwc%2feslint-plugin-lwc cache-miss 17 http cache https://registry.npmjs.org/@lwc%2feslint-plugin-lwc 5ms (cache hit) 18 silly packumentCache full:https://registry.npmjs.org/@lwc%2feslint-plugin-lwc set size:169309 disposed:false 19 silly fetch manifest @babel/eslint-parser@^7 20 silly packumentCache full:https://registry.npmjs.org/@babel%2feslint-parser cache-miss 21 http fetch GET 200 https://registry.npmjs.org/@babel%2feslint-parser 92ms (cache updated) 22 silly packumentCache full:https://registry.npmjs.org/@babel%2feslint-parser set size:undefined disposed:false 23 silly fetch manifest @babel/core@^7.11.0 24 silly packumentCache full:https://registry.npmjs.org/@babel%2fcore cache-miss 25 http fetch GET 200 https://registry.npmjs.org/@babel%2fcore 41ms (cache updated) 26 silly packumentCache full:https://registry.npmjs.org/@babel%2fcore set size:undefined disposed:false 27 silly fetch manifest eslint@8.57.1 28 silly packumentCache full:https://registry.npmjs.org/eslint cache-miss 29 http fetch GET 200 https://registry.npmjs.org/eslint 35ms (cache updated) 30 silly packumentCache full:https://registry.npmjs.org/eslint set size:undefined disposed:false 31 silly fetch manifest @prettier/plugin-xml@^3.2.2 32 silly packumentCache full:https://registry.npmjs.org/@prettier%2fplugin-xml cache-miss 33 http fetch GET 200 https://registry.npmjs.org/@prettier%2fplugin-xml 111ms (cache updated) 34 silly packumentCache full:https://registry.npmjs.org/@prettier%2fplugin-xml set size:undefined disposed:false 35 silly fetch manifest prettier@^3.1.0 36 silly packumentCache full:https://registry.npmjs.org/prettier cache-miss 37 http fetch GET 200 https://registry.npmjs.org/prettier 31ms (cache updated) 38 silly packumentCache full:https://registry.npmjs.org/prettier set size:undefined disposed:false 39 silly fetch manifest @salesforce/eslint-config-lwc@^3.2.3 40 silly packumentCache full:https://registry.npmjs.org/@salesforce%2feslint-config-lwc cache-miss 41 http fetch GET 200 https://registry.npmjs.org/@salesforce%2feslint-config-lwc 217ms (cache updated) 42 silly packumentCache full:https://registry.npmjs.org/@salesforce%2feslint-config-lwc set size:undefined disposed:false 43 silly fetch manifest @lwc/eslint-plugin-lwc@^2.0.0 44 silly packumentCache full:https://registry.npmjs.org/@lwc%2feslint-plugin-lwc cache-hit 45 verbose stack Error: unable to resolve dependency tree 45 verbose stack at #failPeerConflict (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1363:25) 45 verbose stack at #loadPeerSet (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1329:33) 45 verbose stack at async #buildDepStep (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:904:11) 45 verbose stack at async Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:181:7) 45 verbose stack at async Promise.all (index 1) 45 verbose stack at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:131:5) 45 verbose stack at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:150:5) 45 verbose stack at async Npm.exec (/usr/local/lib/node_modules/npm/lib/npm.js:207:9) 45 verbose stack at async module.exports (/usr/local/lib/node_modules/npm/lib/cli/entry.js:74:5) 46 error code ERESOLVE 47 error ERESOLVE unable to resolve dependency tree 48 error 49 error While resolving: salesforce-app@1.0.0 49 error Found: @lwc/eslint-plugin-lwc@1.9.0 49 error node_modules/@lwc/eslint-plugin-lwc 49 error dev @lwc/eslint-plugin-lwc@"^1.1.2" from the root project 49 error 49 error Could not resolve dependency: 49 error peer @lwc/eslint-plugin-lwc@"^2.0.0" from @salesforce/eslint-config-lwc@3.7.1 49 error node_modules/@salesforce/eslint-config-lwc 49 error dev @salesforce/eslint-config-lwc@"^3.2.3" from the root project 49 error 49 error Fix the upstream dependency conflict, or retry 49 error this command with --force or --legacy-peer-deps 49 error to accept an incorrect (and potentially broken) dependency resolution. 50 error 50 error 50 error For a full report see: 50 error /Users/carlosgarcia/.npm/_logs/2025-02-21T07_08_16_525Z-eresolve-report.txt 51 silly unfinished npm timer reify 1740121696869 52 silly unfinished npm timer reify:loadTrees 1740121696871 53 silly unfinished npm timer idealTree:buildDeps 1740121696876 54 silly unfinished npm timer idealTree:#root 1740121696876 55 verbose cwd /Users/carlosgarcia/Projects/SalesforceProjects/copaedge_21022025 56 verbose os Darwin 23.6.0 57 verbose node v22.13.1 58 verbose npm v10.9.2 59 verbose exit 1 60 verbose code 1 61 error A complete log of this run can be found in: /Users/carlosgarcia/.npm/_logs/2025-02-21T07_08_16_525Z-debug-0.log
System Information
Using "zsh"The text was updated successfully, but these errors were encountered: