Skip to content
Docs
Errors

import_meta

A module uses import.meta.

A module uses import.meta.

KindBuild or validation problem
Reported byArchive and source validation
disko exit code1 (problems)

A module uses import.meta. Games have no module URL or file location to read at run time, so import.meta is not allowed in any form.

Why it happens

Code copied from browser or Node projects often uses import.meta.url to build a path to a file, or import.meta.env for configuration.

Wrong

src/main.js
src/main.js

Import assets directly, and keep configuration as constants in a module.

See also