Hello all, I created an excercise lwc project, when I deploying apex or lwc files by the salesforce extension pack with vs code, it failed saying Error parsing file: Element {http://soap.sforce.com/2006/04/metadata}apiVersion invalid at this location in type Document for all the lwcs deployed successfully by the previous command.
the js-meta.xml has no special as below
<?xml version="1.0" encoding="UTF-8"?><LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" > <apiVersion>61.0</apiVersion> <isExposed>true</isExposed> <targets> <target>lightning__AppPage</target> <target>lightning__RecordPage</target> <target>lightning__HomePage</target> </targets></LightningComponentBundle>
OS: win 11
Node.js: 20.8.1
sf: 2.29.5
What I'm sure of is it's not working only on windows environment but working perfectlly fine on ubuntu with same simple lwc files. I believe it's a sort of bug. But my work latptop is using windows 11, any one any idea? Thanks
Hi ,
The following is a problem with special characters
https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T6JdDSAV