question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.js-meta.xml file name gets changed to .css-meta.xml

See original GitHub issue

Summary

When retrieving a component eg. sfdx force:source:retrieve -m LightningComponentBundle:example the example.js-meta.xml file has the name chaned to example.css-meta.xml

Steps To Reproduce:

  1. create a new lightning web component
  2. add a .css file to that comp.
  3. deploy
  4. delete locally
  5. retrieve from source sfdx force:source:retrieve -m LightningComponentBundle:example

Expected result

meta xml should be called example.js-meta.xml

Actual result

meta xml is called example.css-meta.xml

Additional information

SFDX CLI Version(to find the version of the CLI engine run sfdx --version): sfdx-cli/7.82.0-3d0c527ac6 darwin-x64 node-v12.18.3

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core):

@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.4 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/lwc-dev-server 2.7.0
├─ @oclif/plugin-help 2.2.3
└─ @oclif/plugin-update 1.3.10
@salesforce/sfdx-trust 3.4.3 (core)
alias 1.1.3 (core)
analytics 1.12.1 (core)
auth 1.3.0 (core)
config 1.2.1 (core)
generator 1.1.3 (core)
salesforcedx 50.7.0 (core)
├─ schema 1.0.1 (core)
├─ templates 50.1.0 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
├─ custom-metadata 1.0.10 (core)
├─ apex 0.1.4 (core)
└─ salesforce-alm 50.7.0 (core)
sfdx-cli 7.82.0 (core)

OS and version: Mac 10.15.6 (19G2021)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:9

github_iconTop GitHub Comments

1reaction
smaypilotcommented, Mar 25, 2021

Same problem. Any updates on this? Starting to become more prevalent it seems.

1reaction
rohanshenoy96commented, Mar 17, 2021

I got the same issue. Somehow 2 xml files were generated one with {filename}.css-meta.xml and another with {filename}.js-meta.xml. I deleted the {filename}.css-meta.xml file and pushed the code to org and it worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

component.css-meta.xml File in LWC getting created when ...
xml file for each Lightning web component which I am trying to retrieve from the source. For example, if my component name is...
Read more >
VSCode does not retrieve js-meta.xml file for LWC
xml, only css, css-meta.xml, HTML and js files are retrieved. Without the js-meta.xml file, I cannot deploy any changes to LWC. It gives ......
Read more >
Unable to deploy LWC components after refresh\retrieve ...
However, if you're getting a .css-meta.xml file when creating a UI or Service ... undeployable unless u change the name back to js-meta.xml....
Read more >
Specified Version Deployment Error in Meta xml Files
This error is caused because the Managed package version in the target environment is at a lower version (226.8.3) and the component's package ......
Read more >
What's in the head? Metadata in HTML - MDN Web Docs
What is the HTML head? · Adding a title · Metadata: the <meta> element · Adding custom icons to your site · Applying...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found