# LWC1116

Represents an error for an invalid folder name.

Severity: Error

# Message

Illegal folder name "{0}". The folder name must start with a lowercase character: "{1}".

The error message includes two placeholders:

Example diagnostic messages:

LWC1116: Illegal folder name "ContactCard". The folder name must start with a lowercase character: "contactCard".
LWC1116: Illegal folder name "OrderSummary". The folder name must start with a lowercase character: "orderSummary".

# Problem

LWC1116 occurs when a component's folder name starts with an uppercase letter. LWC component folder names must begin with a lowercase character. Uppercase letters are allowed after the first character (e.g., camelCase), but the first character must always be lowercase.

# Examples

# 1. Component Folder Name Starts with a Capital Letter

LWC component folder names must start with a lowercase character. This applies regardless of whether the rest of the name uses camelCase or is fully lowercase.

# Examples with Errors

ContactCard/
├── contactCard.js
├── contactCard.html

Error Message: LWC1116: Illegal folder name "ContactCard". The folder name must start with a lowercase character: "contactCard".

# Error Resolution Examples

Rename the folder to start with a lowercase character:

contactCard/
├── contactCard.js
├── contactCard.html

# Suggested Fix Steps

# Step 1: Identify the Folder Name

The error message shows the invalid folder name and the corrected version. Locate the component folder in your project.

# Step 2: Rename the Folder

Rename the component folder so the first character is lowercase. The error message includes the corrected name — for example, "ContactCard" should be renamed to "contactCard".

For specific examples, see the Error Resolution Examples in the Examples section.

# Step 3: Verify the Fix

  1. Re-compile or redeploy your component
  2. Ensure LWC1116 no longer appears
  3. Verify that any references to the component (e.g., <c-my-component> in templates) still resolve correctly