Python import errors
Run your script in the environment where Mirage is installed. For a uv project, useuv run python your_script.py.
Some VFS types need an extra package:
python3 reports that the monty runtime requires the monty extra, or
node or js reports that the quickjs runtime requires the quickjs extra,
install that extra:
qjs-wasi.wasm module; see
QuickJS installation.
TypeScript import errors
Use the package for your environment:
If a browser build complains about Node built-ins, check for imports from
@struktoai/mirage-node. Use the browser package and a
browser-supported VFS instead.
For missing optional dependencies such as redis or pg, follow
TypeScript installation.
Credentials or connection errors
- Set credentials in the environment of the process running Mirage.
- Check the service URL, account permissions and required token scopes.
- Follow the setup guide for your VFS.
Missing files or empty output
Inspect paths inside Mirage. ReplaceYOUR_WORKSPACE_ID with your workspace ID:
Writes are refused
Check that the VFS supports the operation and that the mount haswrite or
exec mode. A read-only backend stays read-only even on a writable mount.
Session policies can also restrict access.
FUSE does not mount
FUSE is optional;ws.shell(...) works without an OS mount. If you need a
mounted folder, follow the macOS or
Linux setup, then install the binding for your SDK:
- Python:
uv add "mirage-ai[fuse]". - TypeScript: follow the FUSE setup, including its native dependency installation steps.