This section describes the error codes of the es2abc compiler module. For details about universal error codes, see Universal Error Codes.
Error Message
Example
ERROR: 10705000 Syntax Error SyntaxError: Concurrent function should only use import variable or local variable, 'a' is not one of them [/path/to/wrong/file.ts:9:4]
Description
The compiler cannot parse a syntax structure in the source file. The error information contains the file name, line number, and column number.
Possible Causes
Solution
Error Message
Example
ERROR: 10706001 Found unsupported change in file, failed to generate patch abc! [Patch] Found lexical variable added or removed in .a, not supported! [Patch] Found unsupported change in file, will not generate patch! Error: [base_mod.js:0:0]
Description
The compiler detects that the source file contains changes that are not supported by incremental compilation (patch mode). As a result, the patch generation is terminated. These changes usually involve code modifications that significantly affect the semantics, such as scope, variable declaration, and import structure.
Possible Causes
Solution