swc-project/swc
Documented errors, page 5 of 6. Back to swc-project/swc
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Expected 'url' or 'src' name of a function token | validation | error | |
| failed to parse args of #[ast_serde] | panic | error | |
| Invalid attempt to spread non-iterable instance. In order… | exception | error | spread, iterable, es2015, typeerror |
| Value of `global_defs. | panic | error | minifier, terser, global-defs, type-mismatch, config |
| Expected ident or string | validation | error | |
| Unexpected end of file, but expected '{' | validation | error | |
| illegal conversion: Cannot convert | panic | error | swc, estree, babelify, private-name, object-literal, panic |
| it should not fail without emitting errors to handler | panic | error | |
| Non void html element start tag with trailing solidus | exception | error | |
| Please confirm if plugin macro is specified for the function | panic | error | swc-plugin, proc-macro, compile-time, attribute-macro, rust |
| Expected ident (with 'or' value) token | validation | error | |
| Invalid unicode escape | validation | error | |
| Symbol.asyncDispose is not defined. | exception | error | await-using, explicit-resource-management, polyfill, symbol-asyncdispose |
| Unknown span attribute | panic | error | rust, proc-macro, swc, span, derive, compile-time |
| Expected ident or str tokens | validation | error | |
| Expected ident token | validation | error | |
| Unexpected '{' token | validation | error | |
unsupported emit unknown variant is not supported | exception | error | |
| Duplicate variable name | panic | error | proc-macro, quote, duplicate-binding, compile-time |
| Expected 'u' ident token | validation | error | |
FormWhenFormOpen Saw a "form" start tag, but there was already an active "form" element, nested… | validation | error | |
| swc does not support tuple expressions | panic | error | estree-compat, swcify, ast-conversion, record-tuple-proposal, panic |
| cap == 0 | panic | error | |
| Invalid type | panic | error | proc-macro, quote, compile-time, annotation |
| No " " element in scope but a " " end tag seen | validation | error | |
| Start tag " " seen in "table" body | validation | error | |
StrayDoctype Stray doctype | validation | warning | html, parser, doctype, head, duplicate, insertion-mode, swc |
| swc does not support module expressions | panic | error | estree-compat, swcify, ast-conversion, module-expressions, panic |
| Failed to convert pointer size to calculate | exception | error | |
| failed to parse #[ast_node] | panic | error | |
SomethingBetweenHeadAndBody " " element between "head" and "body | validation | error | |
| Unexpected value | validation | error | |
InvalidArg invalid `syntax | validation | error | |
| Start tag " " seen without a "ruby" element being open | validation | warning | html, parser, ruby, rb, rtc, cjk, annotation |
| Expected percentage token | validation | error | |
| Expected '>' or '<' operators | validation | error | css, swc, parser, at-rules, media-query, media-feature, range-syntax, syntax |
| Please specify `filename` | panic | error | wasm, filename, resolver, config, browser |
StrayStartTag Stray start tag | validation | error | |
| Input is empty | validation | error | swc-cli, stdin, input, validation |
| failed parse json as javascript object | exception | error | |
| Unexpected error occurred while running plugin transform | exception | error | |
| Unexpected ')' in declaration value | validation | error | |
| Non-space character in "frameset" | validation | warning | html, parser, swc, frameset, text-node, parse-error |
| Expected Declaration value | validation | error | |
| "select" start tag where end tag expected | validation | warning | html, html-parser, select, nested-elements, parse-error, swc |
UnexpectedTokenInEndPhase Unexpected token in end phase | validation | error | |
| failed to parse browser version | panic | error | |
| Expected only one name | validation | error | |
| flow type cast | panic | error | swc, babel, flow, type-cast, ast-conversion |
| Cannot specify multiple files when using a directory as… | validation | error | swc-cli, input, arguments, directory-input |
| enum cannot be empty | panic | error | |
| Non-space character after "frameset" | validation | warning | html, parser, swc, frameset, text-node, parse-error |
| Unexpected eof | validation | error | |
UnexpectedTokenInMainPhase Unexpected token in main phase | validation | error | |
| Expected at least one name | validation | error | |
| Tried to parse the condition for an if statement | exception | error | |
| Expected percentage, number, function (math functions) or… | validation | error | |
| Unexpected | validation | error | |
| {msg} | exception | error | |
| Symbol.dispose is not defined. | exception | error | using-declaration, explicit-resource-management, polyfill, symbol-dispose |
| destination ` ` already exists | validation | error | swc-cli, plugin, scaffold, filesystem |
EofWithUnclosedElements End of file seen and there were open elements | validation | error | |
| End tag " " seen, but there were open elements | validation | error | |
StrayEndTag Stray end tag | validation | warning | html, parser, end-tag, orphan, insertion-mode, swc |
| The requested const_module | panic | error | const-modules, default-import, missing-export, globals |
| path does not exist | validation | error | dbg-swc, flow, cli, filesystem |
| Unexpected end of file, but expected ']' | validation | error | |
| failed to deserialize .swcrc (json) file | exception | error | |
| @value at-rule is deprecated | validation | error | |
| Expected digit | exception | error | |
| Unexpected ';' in declaration value | validation | error | |
EndTagWithUnclosedElements Unexpected end tag for "body", but there were unclosed elements | validation | error | |
| Unterminated regexp literal | validation | error | |
| Expected '{', '(' or '[' token | validation | error | |
| failed to parse `pure_funcs` of minifier options | panic | error | minifier, terser, pure-funcs, config, parse-error |
| Saw an end tag after "body" had been closed | validation | warning | html, parser, swc, end-tag, after-body, parse-error |
| Label is already declared | exception | error | |
| Expected ',' delim token | validation | error | |
| --strip-leading-paths requires --out-dir | validation | error | swc-cli, strip-leading-paths, cli-options, validation |
| --watch requires input files | validation | error | swc-cli, watch, cli-options, validation |
HeadingWhenHeadingOpen Heading cannot be a child of another heading | validation | error | |
UnexpectedEofInStartPhase Unexpected end of file in start phase | validation | error | |
| Expected percentage, function (math functions) or ident… | validation | error | |
| Unexpected end of file, but expected ';' or '{' | validation | error | |
| A numeric separator is only allowed between two digits | exception | error | |
| corejs version other than 2 / 3 | panic | error | |
| Unterminated block comment | validation | error | |
| Expected ident or function (local or scope) token | validation | error | |
| Unexpected end of file, but expected ')' | validation | error | |
UnexpectedNullCharacter Unexpected null character | validation | error | |
| Expected '+' character after 'u' in unicode range | validation | error | |
| Invalid JSON | panic | error | |
| The CSS-wide keywords are not valid custom ident, found | validation | error | |
| failed to parse input as DeriveInput | panic | error | |
| Expected integer type | validation | error | |
| Unexpected end of file, but expected '}' | validation | error | |
| Plugin is not supported with current @swc/core. Plugin… | console | warning | cargo-feature, plugin, not-supported, config, rust |
| Expected ',', '/' or ';' delim token | validation | error | |
| failed to load file | panic | error | |
| Box() -> T or Box without a type parameter | panic | error |