2

I am trying to deploy an LWC and get this error : "Error parsing file: LWC Metadata Xml Parser: Unexpected element: runtimeNamespace". Here is the code of my js-meta.xml

<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>48.0</apiVersion>    
    <isExposed>true</isExposed>    
    <masterLabel>button_green</masterLabel>    
    <description>Button green</description>
    <runtimeNamespace>vlocity_cmt<runtimeNamespace>
</LightningComponentBundle>

VS code

3

I realised there is a typing error. The runtimeNamespace tag is not closed correctly, I missed the "/"

2
  • 2
    This element is not part of the specification for this file's content (as mentioned by Martin Lezer in his answer). Why do you have it here?
    – Phil W
    Jan 8 '20 at 12:06
  • It is for Vlocity LWC
    – Ludodo
    Jan 5 '21 at 22:32
2

Well, the runtimeNamespace tag doesn't exist in the possible configuration file tags.

Here's a link to the documentation : https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.reference_configuration_tags

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.