Guides Build & Release Web Export Fix Web Export Problems

Build & Release Web Export 1 min read Updated Nov 2026

Fix Web Export Problems

Start where it failed. An error in Build & Export means the ZIP could not be made. A problem in the browser means the game, the browser or the host needs attention.

Build & Export Reports an Error

Choose Copy Report under the preflight result. After a failed build, use copy in Export Status, or Copy Report in the Build History tab. The report names the failing step. Remove folder names you do not want to share before posting it.

Web Tools Unavailable

Export Summary shows Web tools unavailable with a reason when the installation cannot build Web games, for example when it has no Web export or its Web tools belong to another Lenga version. Install a matching Lenga that includes Web export.

The Project Needs Another Lenga Version

Open an older project in the editor and let it upgrade before exporting. A project made with a newer Lenga needs that version.

Missing Game Files

Preflight lists each missing file with the scene or asset that uses it:

Missing game files:
  - Assets/Textures/Ball.png (used by Assets/Scenes/Level1.scene.json)

Restore the file, or open the scene or asset that uses it and choose another file or clear the field. Save, choose Refresh Dependencies, then Run Preflight. Refreshing alone cannot replace a deleted file.

Files that models and materials use follow the same rule:

  • glTF and GLB models: keep separate buffer and texture files at the same place relative to the model, under Assets. A GLB with embedded textures has no separate files.
  • OBJ models: keep the .mtl material library and its textures under Assets, with plain paths relative to the OBJ.
  • Materials, skyboxes and shaders: keep their textures and shader files under Assets.
  • Tilesets: assign the image in the tileset's Inspector and save the tileset.

If a file is used only by a script, add it to the dependency list; see Add files that scripts load by name.

Dependencies Are Out of Date

Preflight reports this after you change scenes, assets or Scenes in Build. Choose Refresh Dependencies, then Run Preflight.

Assets Need Importing

If preflight asks you to import or reimport assets, open the project in the editor and wait for the Assets panel to finish updating. For a single file, right-click it in the Assets panel and choose Reimport. Then choose Refresh Dependencies and Run Preflight.

A Linked File or Folder Is Blocked

Web builds take files only from inside the project. Copy an outside file into the project and point the scene or asset at the copy.

PHP Errors

Open the reported script and fix the first syntax error it names. If your project uses Composer packages, install them before exporting. Replace code that needs a PHP extension the Web player lacks; see Web export limitations.

Physics Settings Are Rejected

Web builds use Box2D for 2D and Jolt for 3D. If ProjectSettings/physics.json, or a settings file it names, sets a backend other than default, box2d for 2D or jolt for 3D, change it to one of those. Keep every settings file that physics.json names inside the project.

The Browser Shows a Blank Page

Open the browser's developer tools and look at the Console and Network panels.

  • A 404 for one of the four files means it is missing or misspelled on the host. Upload all four files from the ZIP into one folder.
  • An HTML error page in place of JavaScript or Wasm means the host is rewriting the request. Check its routing and the content types.
  • WebGL errors mean the browser has no WebGL 2, or a custom shader does not compile for it. Try another desktop browser, and check custom shaders.

Play the same ZIP with Run Player in the Build History tab. If it works there, the problem is on the host.

A Custom Material Looks Different in the Browser

Check the browser console for shader compile or link errors. If the stage files are present, check that they use GLSL ES 300 syntax and that the vertex outputs match the fragment inputs. See Write portable shader stages for stages you want to use on desktop and Web.

The Game Is Silent or Ignores the Keyboard

Click inside the game. Browsers start sound only after a click or key press, and keys reach the game only while it has focus. If this happens only on itch.io or inside another page, play the same ZIP from your own site or with Run Player, and check the page's embed settings.

Physics Feels Different

Play the same scene on desktop and in the browser and compare. Check that the scene uses the physics settings you expect.

Progress Is Gone After a Reload

  • Read any warning the player shows. If another tab of the game is open, close it: only one tab saves.
  • Save at checkpoints and wait a moment before closing or reloading.
  • Keep the game at the same address and the same project ID between updates.

See Save progress in a Web build for how saving works and how to test it.