Closed dbreese closed 1 year 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.
This issue has not received a response in 60 days. It will auto-close in 7 days unless a response is posted.
I believe this is fixed as of ➜ sf -v @salesforce/cli/2.1.7 darwin-arm64 node v18.16.0
➜ mkdir lwc
➜ scratches
➜ cd lwc
➜ lwc
➜ sfdx force project create -n TestApp
Warning: The "force project create" command has been deprecated. Use "project generate" instead.
target dir = /Users/william.ruemmele/projects/scratches/lwc
create TestApp/config/project-scratch-def.json
create TestApp/README.md
create TestApp/sfdx-project.json
create TestApp/.husky/pre-commit
create TestApp/.vscode/extensions.json
create TestApp/.vscode/launch.json
create TestApp/.vscode/settings.json
create TestApp/force-app/main/default/lwc/.eslintrc.json
create TestApp/force-app/main/default/aura/.eslintrc.json
create TestApp/scripts/soql/account.soql
create TestApp/scripts/apex/hello.apex
create TestApp/.eslintignore
create TestApp/.forceignore
create TestApp/.gitignore
create TestApp/.prettierignore
create TestApp/.prettierrc
create TestApp/jest.config.js
create TestApp/package.json
➜ lwc
➜ cd TestApp
➜ TestApp
➜ oc
Creating Scratch Org...
RequestId: 2SR3i0000008Z3QGAU (https://brave-bear-5fmf7j-dev-ed.my.salesforce.com/2SR3i0000008Z3QGAU)
OrgId: 00DDC0000004Hup
Username: test-iryhfcskkcwh@example.com
✓ Prepare Request
✓ Send Request
✓ Wait For Org
✓ Available
✓ Authenticate
✓ Deploy Settings
Done
Your scratch org is ready.
➜ TestApp hub:(GLOBAL - DevHub) scratch:(test-iryhfcskkcwh@example.com)
➜ sfdx force:lightning:component:create -n myTest --type lwc -d force-app/main/default/lwc
Warning: The "force lightning component create" command has been deprecated. Use "lightning generate component" instead.
target dir = /Users/william.ruemmele/projects/scratches/lwc/TestApp/force-app/main/default/lwc
create force-app/main/default/lwc/myTest/myTest.js
create force-app/main/default/lwc/myTest/myTest.html
create force-app/main/default/lwc/myTest/__tests__/myTest.test.js
create force-app/main/default/lwc/myTest/myTest.js-meta.xml
➜ TestApp hub:(GLOBAL - DevHub) scratch:(test-iryhfcskkcwh@example.com)
➜ sfdx force:source:deploy -p force-app/main/default/lwc/myTest
Warning: We plan to deprecate this command in the future. Try using the "project deploy start" command instead.
Deploying v58.0 metadata to test-iryhfcskkcwh@example.com using the v58.0 SOAP API.
Deploy ID: 0AfDC00000iheGJ0AY
DEPLOY PROGRESS | ████████████████████████████████████████ | 1/1 Components
=== Deployed Source
FULL NAME TYPE PROJECT PATH
───────── ──────────────────────── ────────────────────────────────────────────────────
myTest LightningComponentBundle force-app/main/default/lwc/myTest/myTest.html
myTest LightningComponentBundle force-app/main/default/lwc/myTest/myTest.js
myTest LightningComponentBundle force-app/main/default/lwc/myTest/myTest.js-meta.xml
Deploy Succeeded.
➜ TestApp hub:(GLOBAL - DevHub) scratch:(test-iryhfcskkcwh@example.com)
➜ pwd
/Users/william.ruemmele/projects/scratches/lwc/TestApp
Summary
A parent directory named 'lwc' will cause deployments to fail with cryptic error message:
** Even parent directories up the dir tree named "lwc" will cause the issue too. For example, ~/dev/lwc/someother/someother2/someother3/MyApp.
Steps To Reproduce:
Repository to reproduce: dreamhouse-lwc
~/dev/lwc
cd ~/dev/lwc
Expected result
Should deploy.
Actual result
Cryptic error message is shown:
System Information