Skip to content
Docs
Errors

module_syntax

A module does not parse as an ECMAScript 2023 module.

A module does not parse as an ECMAScript 2023 module.

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

A module does not parse as an ECMAScript 2023 module. The problem gives the line and column of the first error in the file.

Why it happens

  • An ordinary syntax error, such as a missing bracket.

  • CommonJS habits that are invalid in strict-mode modules, such as with or octal literals like 010.

  • Syntax newer than ECMAScript 2023 in .js files: decorators, using declarations, accessor class fields, the regular expression v flag, or import source / import defer.

  • JSX, which is not JavaScript.

Wrong

src/main.js
src/main.js

See also