Duplicate Module ID Detected
Error:
Duplicate module ID “my-id” detected.
The Problem
Two different module files are trying to claim the same id.
The Why
Module IDs must be globally unique within your application. The system uses the ID to resolve dependencies and merge configurations. If two modules have the same ID, the system cannot determine which one to use, leading to unpredictable behavior.
The Solution
- Rename one of the IDs: Change the
idproperty in one of the conflictingindex.module.jsfiles. - Check for Copy-Paste Errors: Often this happens when you copy an existing module to create a new one and forget to update the ID.