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
Saving LWC Component Bundle throws error "An object 'X' of type LightningComponentBundle was named in package.xml, but was not found in zipped directory"
#2375
Closed
molsi01 opened this issue
Jul 24, 2020
· 3 comments
Making a change to .js file of an LWC Component Bundle will not allow a Save & Deploy when using CMD & S (File / Save) or ALT & CMD & S (File / Save All). When attempting this, an error is thrown:
"An object 'X' of type LightningComponentBundle was named in package.xml, but was not found in zipped directory"
Using the manual 'SFDX:Deploy Source to Org' on the .js file, via the menus (or right click on the file) works.
Saving the .html file does work as expected using CMD & S
Steps To Reproduce:
Create a new LWC in VS Code
Add a simple component to the .html file with an onchange event
Add a simple onchange handler to the .js file to console.log some output
Save all components using ALT & CMD & S
Error is produced
Manually run SFDX:Deploy Source to Org (right click on .js file)
Save & deploy works
Expected result
Using CMD & S or ALT & CMD & S should save & deploy changes. If editing just the .js file, using CMD & S should save & deploy the .js file
Actual result
.js file is not deployed and error above is thrown
Additional information
Feel free to attach a screenshot.
VS Code Version:
1.47.2
SFDX CLI Version:
7.66.2
OS and version:
MAC OS 10.15.5
The text was updated successfully, but these errors were encountered:
This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.
Summary
Making a change to .js file of an LWC Component Bundle will not allow a Save & Deploy when using CMD & S (File / Save) or ALT & CMD & S (File / Save All). When attempting this, an error is thrown:
"An object 'X' of type LightningComponentBundle was named in package.xml, but was not found in zipped directory"
Using the manual 'SFDX:Deploy Source to Org' on the .js file, via the menus (or right click on the file) works.
Saving the .html file does work as expected using CMD & S
Steps To Reproduce:
Expected result
Using CMD & S or ALT & CMD & S should save & deploy changes. If editing just the .js file, using CMD & S should save & deploy the .js file
Actual result
.js file is not deployed and error above is thrown
Additional information
Feel free to attach a screenshot.
VS Code Version:
1.47.2
SFDX CLI Version:
7.66.2
OS and version:
MAC OS 10.15.5
The text was updated successfully, but these errors were encountered: