StackBlitz "Cannot load native addon because loading addons is disabled"
Quick answer
WebContainers cannot run native C++ addons, so --no-addons is on. Swap the package for a pure JavaScript or WebAssembly version.
Most likely fix: Replace the dependency
How to fix it
Try these in order — the most common fix is first.
1. Replace the dependency
- Identify the native addon your project depends on
- Replace it with a version written entirely in JavaScript, or one compiled to WebAssembly
Did this fix it?
Symptoms
The error appears when starting a project that depends on a native Node module.
Why it happens
- Native (usually C++) addons cannot run in WebContainers
This guide also covers
- cannot load native addon because loading addons is disabled
- stackblitz native addon
- webcontainer no-addons
Still not working?
If StackBlitz keeps failing, you're not alone. See every StackBlitz problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
All not loading, error messages & connection guides →
CodeSandbox 502 "Dev Server Has Not Started Yet" Error (CodeSandbox)
Replit Workspace Not Loading (Replit)
Cursor High Load Error (ERROR_RESOURCE_EXHAUSTED) (Cursor)
Codespace Running in Recovery Mode: "This codespace is currently running in recovery mode due to a container error" (GitHub Codespaces)
Lovable Stuck in an Error Loop (Lovable)
Other StackBlitz errors
- StackBlitz Unable to Run Embedded Project: Third-Party Cookies Blocked
- StackBlitz Stuck on "Running start command" in Brave
- StackBlitz Not Working in Firefox or Safari
- StackBlitz Out of Memory on Mobile or Large Projects
- StackBlitz npm ERR! code ERESOLVE Conflicting Peer Dependency
- StackBlitz Preview Reloading in an Infinite Loop
- Bolt.new Preview Blank Screen or "Your Preview Will Appear Here"
- Bolt.new Tokens Running Out Too Fast