Skip to content

MANIFEST_EXTRACTION_FAILED: Component module failed to load

Severity Fault Stage
error customer (the source package) component declaration

The builder loads the component module, without a browser, to read its declaration, and the module threw or exited. Usual cause: code at the top level of a module that uses browser globals (window, document, localStorage, navigator), which do not exist while the declaration is read.

Do not touch window, document, localStorage or other browser globals at the top level of a module: use them inside render, an event handler or useEffect.