Duolith docs

Errors E0400 to E0499

E0481 Native bundle could not be made

Message bundling the native build failed

Why

duolith dev --target android|ios and duolith ship bundle the native build with Lynx's bundler, a script run with Node. It is the script DUOLITH_BUNDLER names, or else the one in the duolith source the program was built from; an installed Duolith does not carry a bundler yet, so there DUOLITH_BUNDLER must name one. Node was not found, or the bundler stopped; its last lines are printed with the error, and the help names the bundler's file.

How to fix it

Install Node.js 22.18 or later, or set DUOLITH_NODE to it. When the lines printed say the bundler's file or one of its packages cannot be found, Duolith is not running from its source: set DUOLITH_BUNDLER to the bundler script of a duolith source folder whose packages are installed (packages/engine/scripts/bundle.ts). Otherwise fix what the bundler printed; run it by hand on the native build, with the file the help names, to see all of it.

In a terminal

duolith explain E0481