AEM Universal Editor does not support importmap “scopes” section
When using ۶Ƶ Experience Manager as a Cloud Service (AEMaaCS) - Sites with Universal Editor, the scopes
section of the importmap
defined in the head.html
file is automatically removed. This behavior disrupts design systems that depend on scoped JavaScript imports to load modules under specific paths. To resolve the issue, add JavaScript mappings under the imports
section instead of using the scopes
property.
Description description
Environment
۶Ƶ Experience Manager as a Cloud Service (AEMaaCS) - Sites (Development)
Issue/Symptoms
- Universal Editor removes the
scopes
section from theimportmap
inhead.html
. - Scoped JavaScript imports fail to load, breaking design system functionality.
- No configuration option exists to enable scopes support in Universal Editor.
Resolution resolution
Universal Editor currently supports only the imports section of the importmap
and does not recognize or retain the scopes
property. To work around the issue:
- Open your
head.html
file and locate theimportmap
definition. - Move all scoped JavaScript mappings from the
scopes
section into theimports
section. - Ensure each required module is explicitly defined under imports with its full path. For example,
{ "imports": { "@example/library/": "https://unpkg.com/@example/library@version/path/", "@example/icons/": "https://unpkg.com/@example/icons@version/path/" }}
If your implementation depends on scoped imports and cannot be restructured, contact ۶Ƶ Support with detailed use case information for further evaluation.