Skip to content
Docs
Errors

specifier_escapes_root

A relative import climbs above the package root.

A relative import climbs above the package root.

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

A relative import uses more ../ segments than there are directories above the importing file, so it points outside the project root. A package can only import its own files.

Why it happens

A common cause is sharing code between projects by importing it from a sibling directory. Each game must contain every file it uses.

Wrong

text
text

Copy the shared file into the project and import it with a path inside the project.

See also