When trying to convert an existing Metadata Source Project into a DX Source formatted structure, the force:mdapi:convert is not generating the necessary .js-meta.xml files, even though the metadata folder does contains the .js-meta.xml files under respective LWC component bundle.
Repository to reproduce: sfdx-mdapi-convert-bug
./scripts/createOrgDX.shThe scratch org create script will execute and first convert the metadata api formatted code into DX source formatted structure, and then will try to push the source into the created scratch org.
Error is produced:
Cannot find Lightning Component Bundle lwcCustomModal.
ERROR running force:source:push: Push failed.

SFDX CLI Version:
sfdx-cli/7.78.1-5a65d9dd2f win32-x64 node-v12.18.3
SFDX plugin Version
@oclif/plugin-autocomplete 0.1.5 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.9.1 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/analytics 0.22.0
@salesforce/lwc-dev-server 2.5.1
鈹溾攢 @oclif/plugin-help 2.2.3
鈹斺攢 @oclif/plugin-update 1.3.9
@salesforce/sfdx-diff 0.0.6
@salesforce/sfdx-scanner 2.3.0
@salesforce/sfdx-trust 3.4.3 (core)
alias 1.1.2 (core)
analytics 1.12.1 (core)
auth 1.3.0 (core)
config 1.1.10 (core)
etcopydata 0.4.4 (link) E:\git-repos\ETCopyData
generator 1.1.3 (core)
isvte-sfdx-plugin 1.1.7
salesforcedx 50.3.1 (core)
鈹溾攢 templates 50.1.0 (core)
鈹溾攢 @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
鈹溾攢 custom-metadata 1.0.10 (core)
鈹溾攢 salesforce-alm 50.3.1 (core)
鈹斺攢 apex 0.1.2 (core)
sfdmu 3.7.19
sfdx-cli 7.78.1 (core)
sfdx-heber 0.0.2
sfdx-retrieve-deploy-companion 1.0.6
sfdx-waw-plugin 1.5.0
OS and version:
Edition Windows 10 Pro
Version 20H2
OS build 19042.610
Experience Windows Feature Experience Pack 120.2212.31.0
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.
My team and I are also having this issue when running force:mdapi:convert or force:source:retrieve. The .js-meta.xml files are consistently not converted. We have also had issues with conversion of static resource meta files. May be related to #717
I am also seeing this behaviour when running force:mdapi:convert. Had to remove the css file to be able to deploy the package, because the component.js-meta.xml was missing.
I had this in the logs when running with --dev-debug flag. You can see that it somehow interprets /accountFilterableContact.css-meta.xml when finding a css file in the bundle.
2020-11-10T17:41:18.408Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty retrieveRoot: /Users/hansdesmet/Projects/dpg/dpg-adventure-salesforce/tmp/refresh/mdapi
2020-11-10T17:41:18.408Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty aggregateFullName: accountFilterableContact
2020-11-10T17:41:18.408Z sfdx:SourceLocations DEBUG No metadata path found for LightningComponentBundle__accountFilterableContact
2020-11-10T17:41:18.408Z sfdx:SourceLocations DEBUG No file path found for LightningComponentBundle__accountFilterableContact
2020-11-10T17:41:18.409Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty aggregateMetadataPath: undefined
2020-11-10T17:41:18.409Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty aggregateMetadataPath: /Users/hansdesmet/Projects/dpg/dpg-adventure-salesforce/tmp/refresh/converted/main/default/lwc/accountFilterableContact/accountFilterableContact.css-meta.xml
2020-11-10T17:41:18.409Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty this.forceIgnore.accepts(aggregateMetadataPath): true
2020-11-10T17:41:18.409Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFilePropertykey: LightningComponentBundle__accountFilterableContact
2020-11-10T17:41:18.409Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty aggregateSourceElement.retrievedMetadataPath: null
2020-11-10T17:41:18.409Z sfdx:SourceWorkspaceAdapter DEBUG retrievedContentPath: /Users/hansdesmet/Projects/dpg/dpg-adventure-salesforce/tmp/refresh/mdapi/unpackaged/lwc/accountFilterableContact/accountFilterableContact.css
2020-11-10T17:41:18.409Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty retrieveRoot: /Users/hansdesmet/Projects/dpg/dpg-adventure-salesforce/tmp/refresh/mdapi
2020-11-10T17:41:18.409Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty aggregateFullName: accountFilterableContact
2020-11-10T17:41:18.409Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty aggregateMetadataPath: /Users/hansdesmet/Projects/dpg/dpg-adventure-salesforce/tmp/refresh/converted/main/default/lwc/accountFilterableContact/accountFilterableContact.css-meta.xml
2020-11-10T17:41:18.409Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty aggregateMetadataPath: /Users/hansdesmet/Projects/dpg/dpg-adventure-salesforce/tmp/refresh/converted/main/default/lwc/accountFilterableContact/accountFilterableContact.css-meta.xml
2020-11-10T17:41:18.409Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty this.forceIgnore.accepts(aggregateMetadataPath): true
2020-11-10T17:41:18.409Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFilePropertykey: LightningComponentBundle__accountFilterableContact
2020-11-10T17:41:18.410Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty aggregateSourceElement.retrievedMetadataPath: null
2020-11-10T17:41:18.410Z sfdx:SourceWorkspaceAdapter DEBUG retrievedContentPath: /Users/hansdesmet/Projects/dpg/dpg-adventure-salesforce/tmp/refresh/mdapi/unpackaged/lwc/accountFilterableContact/accountFilterableContact.html
2020-11-10T17:41:18.410Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty retrieveRoot: /Users/hansdesmet/Projects/dpg/dpg-adventure-salesforce/tmp/refresh/mdapi
2020-11-10T17:41:18.410Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty aggregateFullName: accountFilterableContact
2020-11-10T17:41:18.410Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty aggregateMetadataPath: /Users/hansdesmet/Projects/dpg/dpg-adventure-salesforce/tmp/refresh/converted/main/default/lwc/accountFilterableContact/accountFilterableContact.css-meta.xml
2020-11-10T17:41:18.410Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty aggregateMetadataPath: /Users/hansdesmet/Projects/dpg/dpg-adventure-salesforce/tmp/refresh/converted/main/default/lwc/accountFilterableContact/accountFilterableContact.css-meta.xml
2020-11-10T17:41:18.410Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty this.forceIgnore.accepts(aggregateMetadataPath): true
2020-11-10T17:41:18.410Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFilePropertykey: LightningComponentBundle__accountFilterableContact
2020-11-10T17:41:18.410Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty aggregateSourceElement.retrievedMetadataPath: null
2020-11-10T17:41:18.410Z sfdx:SourceWorkspaceAdapter DEBUG retrievedContentPath: /Users/hansdesmet/Projects/dpg/dpg-adventure-salesforce/tmp/refresh/mdapi/unpackaged/lwc/accountFilterableContact/accountFilterableContact.js
2020-11-10T17:41:18.411Z sfdx:SourceWorkspaceAdapter DEBUG processMdapiFileProperty retrieveRoot: /Users/hansdesmet/Projects/dpg/dpg-adventure-salesforce/tmp/refresh/mdapi
Yes that is true. If I remove the CSS file, then the LWC component .js-meta.xml is generated correctly. The issue is only happens for LWC having a .css file within the bundle.
This is now fixed in CLI v7.81.0 and salesforcedx v50.6.0
Do you know the timeline, when this will be released to public?
@vc4u - It was released about 45 minutes ago. sfdx update to get it.
Most helpful comment
This is now fixed in CLI v7.81.0 and salesforcedx v50.6.0