stackblitz-common-errors
Fix WebContainer and StackBlitz errors: COOP/COEP, SharedArrayBuffer, boot failures. Use when WebContainers fail to boot, embeds don''t load, or processes crash inside WebContainers. '
npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill stackblitz-common-errors --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# StackBlitz Common Errors ## Error Reference ### SharedArrayBuffer is not defined **Cause:** Missing cross-origin isolation headers. ``` Cross-Origin-Embedder-Policy: require-corp Cross-Origin-Opener-Policy: same-origin ``` **Fix:** Add both headers to your server. In Vite: `server.headers` config. ### Failed to boot WebContainer **Cause:** Only one WebContainer instance allowed per page. ```typescript // BAD: Multiple boot calls const wc1 = await WebContainer.boot(); const wc2 = await WebContainer.boot(); // Fails! // GOOD: Singleton pattern let instance: WebContainer | null = null; async function getWC() { if (!instance) instance = await WebContainer.boot(); return instance; } ``` ### npm install hangs or fails **Cause:** Large dependency tree or network issue in WebContainer. ```typescript // Use --prefer-offline and minimal deps const proc = await wc.spawn('npm', ['install', '--prefer-offline']); const code = await proc.exit; if (code !== 0) { console.error('Install failed, retrying...'); const retry = await wc.spawn('npm', ['install']); await retry.exit; } ``` ### server-ready event never fires **Cause:** Application not listening on a port. ```typescript // Ensure your app c
- Error Reference
- SharedArrayBuffer is not defined
- Failed to boot WebContainer
- npm install hangs or fails
- server-ready event never fires
- File operations fail with ENOENT
- Quick Diagnostic
- Error Handling
- Resources
- Next Steps
What does the stackblitz-common-errors skill do?
Fix WebContainer and StackBlitz errors: COOP/COEP, SharedArrayBuffer, boot failures. Use when WebContainers fail to boot, embeds don''t load, or processes crash inside WebContainers. '
How do I install it?
Run `npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill stackblitz-common-errors --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From jeremylongshore/claude-code-plugins-plus-skills, a repository with 2,630 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.