Component Configuration File

Every component must have a configuration file. The configuration file defines the metadata values for the component, including supported targets and the design configuration for Lightning App Builder and Experience Builder.

The configuration file follows the naming convention componentName.js-meta.xml, such as myComponent.js-meta.xml.

Include the configuration file in your component’s project folder, and push it to your org along with the other component files.

Here’s the simplest configuration file.

For the complete list of elements in the configuration file, see XML Configuration File Elements.

If you don’t include a configuration file for your component, you get an error similar to the following when you push your changes.

Cannot find Lightning Component Bundle <component_name>

See Also