Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnoses and fixes Lingui SWC plugin errors by matching @lingui/swc-plugin versions to Next.js, Rspack, or other SWC runtimes.
65% 100%+35 ptsof test cases passed
Passed 23 of 23 test cases with the skill, and 15 of 23 without it.
3 of 3 safety checks passed
Not used yet
If you see errors like these during your build:
failed to invoke plugin on 'Some("/app/src/file.ts")'
failed to run Wasm plugin transform
RuntimeError: out of bounds memory access
LayoutError called Result::unwrap()
This is NOT a bug. You're using an incompatible version of @lingui/swc-plugin with your SWC runtime.
SWC plugin support is experimental. The plugin API does not follow semantic versioning.
SWC uses Rkyv to transfer the AST between the core and plugins. Both must agree on the exact memory layout of the AST. If the layout changes (e.g., new ECMAScript features), older plugins cannot read the data correctly.
This layout cannot be negotiated at runtime - it must match at compile time.
Go to the compatibility table and find the plugin version that matches your runtime.
For precise matching, use https://plugins.swc.rs/:
next)[email protected])@lingui/swc-plugin version{
"devDependencies": {
Next to this one in the catalogue, plus more from the same author.