Since Winter'19 release my team is getting following errors when pushing our code to the scratch orgs (or converting it to mdapi
format):
[xmldom error] element parse error: Error: invalid tagName:
@#[line:5,col:38]
[xmldom error] element parse error: Error: invalid tagName:
@#[line:6,col:28]
[xmldom error] element parse error: Error: invalid tagName:
@#[line:7,col:32]
[xmldom error] element parse error: Error: invalid tagName:
@#[line:8,col:36]
[xmldom error] element parse error: Error: attribute equal must after attrName
@#[line:9,col:40]
Error message is quite helpful with what's wrong but not with pointing the exact troublesome file as you can see. Seems to be project specific because I don't get any errors when pushing for example lwc-recipes code.
Besides errors showing up in the console everything is fine and the entire code is pushed to the scratch org in the end. However, I still wonder if we have some issues in some of our files or not.
Did someone else encounter such errors or we are the only ones? And if you had, did you find the root cause?
UPDATE 29.03.2019:
I just noticed that it happens only when --force flag is added to the sfdx force:source:push -f
command