Standard OS · DocumentationSTANDARD MANUALSTD-MODULE-L · 2026-02-25
STD-MODULE-L

Module Load Failure

Module Load Failure

Error: Failed to load module: /path/to/module/index.module.js

The Problem

The Standard Module Loader attempted to import a module definition file, but the import failed. This usually means there is a syntax error in your index.module.js or one of its dependencies threw an error during evaluation.

The Why

Modules are JavaScript/TypeScript files that are executed at build time. If your module file contains invalid code, or if it tries to import a file that does not exist, the loader cannot proceed. Since the module system is the spine of your application, a broken module prevents the entire system from starting.

The Solution

  1. Check Syntax: Ensure your index.module.js is valid JavaScript/TypeScript.
  2. Check Imports: Verify that all file paths in imports are correct.
  3. Check Logs: The error message in your terminal usually includes the specific error (e.g., SyntaxError, Error: Cannot find module).
  4. Isolate: Try commenting out the module in your modules/ folder to confirm it is the source of the crash.
Standard OS — stnd.buildSTD-MODULE-L · rev. 2026-02-25