hayotbekismoilov/all-software/swc-plugin-compatibility
Claude Code and agent skill by hayotbekismoilov/all-software
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Diagnose and fix Lingui SWC plugin compatibility errors with Next.js, Rspack, or other SWC runtimes. Use when seeing errors like "failed to invoke plugin", "failed to run Wasm plugin transform", "out of bounds memory access", or "LayoutError" during builds with @lingui/swc-plugin.
Install
npx vskill@latest install hayotbekismoilov/all-software/swc-plugin-compatibilitySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as hayotbekismoilov/all-software/swc-plugin-compatibility.
SWC Plugin Compatibility
If you see errors like these during your build:
This is NOT a bug. You're using an incompatible version of @lingui/swc-plugin with your SWC runtime.
Why This Happens
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.
How to Fix
Step 1: Check the Compatibility Table
Go to the compatibility table and find the plugin version that matches your runtime.
Step 2: Use the Plugin Compatibility Site
For precise matching, use https://plugins.swc.rs/:
- Select your runtime (e.g.,
next) - Select your runtime version (e.g.,
next@15.0.1) - Find a compatible
@lingui/swc-pluginversion
Step 3: Pin Your Versions
Use an exact version (no ^ or ~) to prevent accidental upgrades.
Version Compatibility Quick Reference
| Plugin Version | @lingui/core | Notes | |
|---|---|---|---|
5.* | @lingui/core@5.* | Current | |
4.* | @lingui/core@4.* | Legacy |
Important: @lingui/swc-plugin does not need to match other @lingui/* package versions exactly. It follows its own versioning scheme.
Rules to Avoid Build Breakage
- Pin an exact plugin version compatible with your runtime
- Don't auto-bump `@lingui/swc-plugin` - check release notes first
- Don't auto-bump your runtime (Next.js, Rspack, etc.) - runtimes may bump
swc-corein minor/patch releases - Check compatibility after any upgrade that touches SWC or the plugin
Understanding Runtimes
By "runtime" we mean the tool executing SWC: Next.js, Rspack, or @swc/core.
Some runtimes (like Next.js) embed SWC directly and don't use @swc/core from npm. This means:
- You cannot control
swc-coreversion viapackage.json - Plugin compatibility depends on the runtime's embedded SWC version
Example: Next.js Configuration
Example: .swcrc Configuration
What If No Compatible Version Exists?
If your runtime uses a newer swc-core that no plugin version supports yet:
- Check for recent plugin releases
- Open an issue or PR at https://github.com/lingui/swc-plugin
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingswc-plugin-compatibility/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hayotbekismoilov/all-software/swc-plugin-compatibility)