Duolith docs

Errors E0500 to E0599

E0577 Build-time loader failed

Message loader failed for key: reason

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

A build-time loader threw, its promise was rejected, its module could not be loaded, it imported a module a loader may not use (node:fs, node:child_process, node:net and the like, which the locked-down process refuses), or Node.js could not run at all. The build stops with the page, the key and the reason, and writes nothing, so no route is left half written.

How to fix it

Fix the loader so it returns its value, or catch the failure in the loader and return what the screen should show. Loaders may fetch, and import @duolith/client and the project's own modules, and nothing else.

In a terminal

duolith explain E0577

Mentioned in