Skip to content
Docs
Errors

extension_unsupported

A file or import names an extension that is not allowed here.

A file or import names an extension that is not allowed here.

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

A file, or the file an import names, has an extension that is not allowed in this place. Modules are .js (and .ts in TypeScript projects only); assets are lowercase .png, .jpg, .jpeg, .webp, .mp3, .ogg or .wav.

Why it happens

  • The extension is not on the list at all (.json, .svg, .mjs, .jsx), or it is in upper case (.PNG).

  • .tsx, .mts, .cts and .d.ts files are never accepted.

  • A JavaScript project (its entry ends in .js) contains or imports a .ts file.

  • An archive contains a .ts file; archives hold only emitted .js.

Wrong

src/main.js
src/main.js

See also