You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unhelpful error message when deploying unexpected .xml files in lwc folders using sfdx #1295
If an unexpected .xml file exists in the lwc folder when deploying to an org using sfdx, e.g. sfdx force:source:push, the error message received is: WARNING: Infinite loop detected..
This is an unhelpful error message as it gives no indication as to what is causing the command to fail, and is very difficult to debug.
NOTE: If your issue is not reproducable by dreamhouse-lwc, i.e. requires specific metadata or files, we require a link to a simple Salesforce project repository with a script to setup a scratch org that reproduces your problem.
Checkout dreamhouse-lwc repo
Add file nonsense.xml to folder dreamhouse-lwc/force-app/main/default/lwc/
Run command sfdx force:source:push
Expected result
Push should fail with a helpful error message about the unexpected file.
Actual result
Push has failed with error message: WARNING: Infinite loop detected.
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.
both deploy and beta:push (using the new library) give you a better error
=== Component Failures [1]
Type Name Problem
───── ──── ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error test Unable to build Lightning Component source for markup://c:test: Invalid meta-xml name: lwc/test/nonsense.xml, should end with js-meta.xml
Activity
github-actions commentedon Nov 25, 2021
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.
mshanemc commentedon Dec 6, 2021
both deploy and
beta:push(using the new library) give you a better errormshanemc commentedon Apr 1, 2022
closed with new commands GA