swc-project/swc
Documented errors, page 3 of 6. Back to swc-project/swc
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Expected string, url or function token | validation | error | |
| failed to run esbuild | exception | error | dbg-swc, esbuild, subprocess, path |
| is not a valid expression | panic | error | swc, config, swcrc, javascript-expression, global-pass, env-vars |
| Start tag seen without seeing a doctype first, expected… | exception | warning | html, parser, doctype, quirks-mode, fragment, swc |
| failed to create a temp file | panic | error | test-harness, temp-file, filesystem, permissions, swc |
| Invalid attempt to destructure non-iterable instance. In… | exception | error | destructuring, rest-element, iterable, es2015, typeerror |
| Failed to create shared tokio runtime for plugin execution | panic | error | |
| End tag " " did not match the name of the current open… | exception | warning | html, parser, foreign-content, end-tag, mismatch, nesting, swc |
| invalid utf8 | panic | error | sourcemap, utf8, encoding, panic |
| Saw a start tag "image", "img" element is outdated | validation | warning | html, parser, img, legacy-tags, typo |
| add_effects for class expression | panic | error | swc, ast-utils, class-expression, side-effects, rust |
| failed to parse targets | panic | error | |
| Should able to write into memory view | panic | critical | wasm, plugin, memory, panic, swc-plugin-runner |
| @swc/core could not resolve native bindings installation… | console | info | postinstall, native-binding, env-var, swc-binary-path, node |
| Unexpected characters in ID selector | validation | error | css, selector, id-selector, escaping |
| invalid utf8 character detected | panic | error | |
| swc does not support `PipelinePrimaryTopicReference` | panic | error | estree-compat, swcify, ast-conversion, pipeline-operator, panic |
| @swc/core was not able to resolve native bindings… | console | warning | postinstall, native-binding, optional-dependencies, fallback, node |
| Expected identifier value | validation | error | css, swc, parser, at-rules, media-query, media-feature, syntax |
| Expected 'Hz' or 'kHz' units | validation | error | css, swc, parser, frequency, units |
| Unknown bit operator | panic | error | swc, optimizer, simplifier, constant-folding, shift-operators, ast-invariant, panic |
| Unsupported meta | panic | error | rust, proc-macro, swc, string-enum, attribute-syntax, compile-time |
| Expected hash, ident (with named color or 'transparent'… | validation | error | css, swc, parser, color, token |
| failed to parse a js file as a module | exception | error | dbg-swc, parser, esm, syntax |
| failed to parse number as char | panic | error | |
| Generator is already executing. | exception | error | generator, reentrancy, ts-generator, downlevel, state-machine |
| index not found | exception | error | module-resolution, node-resolver, index-file, swc-ecma-loader, import |
| invalid name reference | validation | error | sourcemap, name-index, input-sourcemap, delta-encoding, malformed-input |
| `npm run build` failed | exception | error | dbg-swc, nextjs, npm, subprocess, minifier |
| Start tag for "table" seen but the previous "table" is… | validation | warning | html, parser, table, nesting, in-table |
| failed to parse input as a DeriveInput | panic | error | |
| failed to read `CARGO_MANIFEST_DIR | panic | error | |
| Stray start tag | validation | warning | html, parser, table, start-tag, in-body, ignored-token |
| Plan does not contain bundle kind for | panic | error | swc, bundler, chunk, internal-invariant |
| Should able to allocate memory in the plugin | panic | critical | wasm, plugin, allocation, oom, panic |
| Should be able to convert size | panic | error | integer-overflow, plugin, comments, panic |
| failed to run terser | exception | error | dbg-swc, terser, npx, subprocess |
| You should perform this operation in the closure passed to… | panic | error | rust, scoped-tls, swc, thread-local, threading, debug-builds |
| Expected number, function or percentage token | validation | error | css, swc, parser, color, cmyk, print |
| Invalid selector | validation | error | css, selector, syntax, combinator |
| #[ast_serde] on enum does not accept any argument | panic | error | rust, proc-macro, swc, serde, compile-time |
| failed to downgrade Flow type-only module to script because… | exception | error | swc, flow, parser, type-stripping, module-to-script |
| spread should be removed before applying generator | panic | error | swc, compat-es2015, generator, object-spread, es2018, pass-ordering, panic |
| Duplicate __source is found | panic | error | swc, jsx, react, development, duplicate-attribute, panic |
| Unexpected end of file | validation | error | css, parser, eof, truncated-input |
| An element descriptor's .kind property must be either… | exception | error | rust, proc-macro, derive, swc, compile-time, enum |
| End tag "br" | validation | warning | html, parser, br, void-elements, typo |
| failed to parse meta | panic | error | proc-macro, attribute-argument, parallel, compile-time, swc |
| failed to parse input to quote!() | panic | error | |
| illegal conversion: Cannot convert | panic | error | rust, swc, babelify, assignment-target, lval, parser-error-recovery, panic |
| illegal conversion: Cannot convert | panic | error | rust, swc, babelify, destructuring, type-conversion, panic |
| Expected ident | validation | error | css, swc, parser, at-rules, container-query, syntax |
| not implemented | panic | error | swc, jsx, ast-utils, identifier-replacement |
| attempted to reassign private method | exception | error | xml, parser, multiple-roots, trailing-content, swc, recoverable |
| Unknown quote type | exception | error | quote-macro, proc-macro, compile-time, swc-ast, unsupported-type |
| Cannot transform product children into CalcProduct | panic | error | swc, css, minifier, calc, invariant |
| cannot process file because it's ignored by .swcrc | validation | error | swc, swcrc, exclude, file-matching |
| Cannot transform sum children into CalcProduct | panic | error | swc, css, minifier, calc, invariant |
| failed to create a temp directory | panic | error | test-harness, temp-dir, filesystem, permissions, swc |
NonSpaceCharacterInTrailer Non-space character in page trailer | validation | warning | html, parser, swc, text-node, after-body, parse-error |
| Expected Extension name should start with '--' | validation | error | css, custom-media, naming, syntax |
| failed parse args | panic | error | |
| Infinite loop detected | panic | critical | minifier, infinite-loop, hang-guard, panic, compress-options |
| Non-space characters found without seeing a doctype first… | exception | warning | html, parser, doctype, text-node, quirks-mode, swc |
| Unknown visitor type | panic | error | proc-macro, swc, rust, compile-time, parallel, visitor |
| failed to handle with unknown panic message | exception | error | panic, html-binding, node-binding, swc-html, unknown-payload |
| failed to read file | panic | error | test-harness, fixture, file-not-found, filesystem, swc |
| Could not read byte from plugin resolver | panic | error | |
| Should be able to convert to i32 | panic | error | integer-overflow, plugin, serialization, panic |
| Expected number or dimension token | validation | error | css, swc, parser, color, hue |
| Failed to unwrap Arc: other references to transform_result… | exception | error | |
| CARGO_MANIFEST_DIR | panic | error | test-harness, environment-variable, cargo, runtime-panic, swc |
| failed to convert `AssignmentExpression` of babel: Unknown… | panic | error | |
| ` ` is not a valid ecmascript version | panic | error | minifier, terser, ecma-version, config, validation |
| unexpected: root directory is given as a input file | exception | error | swc, file-path, source-map, path-handling |
| #[derive(Spanned)] requires a field to get span from | panic | error | rust, proc-macro, swc, span, derive, compile-time |
| Expected string, url or function tokens | validation | error | |
| `paths. ` should have only one wildcard | panic | error | tsconfig, paths, resolver, config, wildcard |
| flow types | panic | error | swc, babel, flow, typescript, tagged-template, ast-conversion |
| Invalid @scope at-rule | validation | error | css, at-rule, scope, syntax |
| Expected ident at first position in <general-enclosed> | validation | error | |
NonSpaceCharacterInTable Misplaced non-space characters inside a table | validation | warning | html, table, text-node, foster-parenting, parse-error |
| TsParameterProperty should be removed by typescript::strip… | panic | error | swc, compat, typescript, pass-order, parameter-properties |
| derive(Merge) does not support a union | panic | error | |
| StringEnum: Cannot determine string value of this variant | panic | error | rust, proc-macro, swc, string-enum, doc-comment, compile-time |
| Expected '--' at the start of custom property name | validation | error | |
| failed to read program file | panic | error | |
| illegal conversion: Cannot convert | panic | error | rust, swc, babelify, catch-clause, binding-pattern, panic |
| .swcrc exists but not matched | validation | error | swc, swcrc, config, file-matching, regex |
| Unclosed elements on stack | validation | error | |
| Usage should be like #[fast_path(ArrowVisitor)] | panic | error | proc-macro, attribute-argument, fast-path, compile-time, swc |
| named enum unsupported | panic | error | rust, proc-macro, derive, decode, enum, unknown-variant |
| Non-space character after body | validation | warning | html, parser, swc, text-node, after-body, parse-error |
| failed to parse `global_defs. | panic | error | minifier, terser, global-defs, config, parse-error |
| No `.js` or `.jsx` files found in | validation | warning | dbg-swc, flow, cli, empty-input |
| parser internal bug | panic | critical | parser, internal-bug, panic, compiler-flags, fuzzing |
| illegal conversion: Cannot convert | panic | error | rust, swc, babelify, bigint, object-literal, property-key, panic |
| Expected a number | validation | error | |
| illegal conversion: Cannot convert | panic | error | rust, swc, babelify, destructuring, parser-error-recovery, invalid-node, panic |
| Cannot convert to Param | panic | error | rust, swc, babelify, function-parameters, parser-error-recovery, panic |