tl;dr - how to make sure Retrieve Source from Org
includes XML file
Description
Normally when I retrieve source data for an LWC from an org in vs code the resulting file looks like this:
For some reason now when I retrieve them it looks like this:
The HTML and JavaScript files are in their own separate files, and the js-meta.xml
file is missing.
Furthermore, when I make changes to the HTML or JavaScript file and attempt to run the SFDX: Deploy This Source to Org
command, I encounter the following error:
Error: ENOTEMPTY: directory not empty, rmdir 'C:\Users\ME\AppData\Local\Temp\sdx_sourceDeploy_pkg_1616179398177\lwc\adminControlPanel\adminControlPanel.html'
As a result I am unable to work on LWC files at this time.
Question
How to make sure Retrieve Source from Org
for LWC files includes the XML file?
Attempted Fixes
- Restart Visual Studio Code
- Uninstall and reinstall Salesforce Extension Pack
- Reauthorize org
- Update Visual Studio Code
- Reinstall SFDX
- Start a new project with manifest
I have also searched online for this error via github tickets, stack exchange, and other sites, but have not found a solution.