clockworklabs/SpacetimeDB · error · anyhow::Error
tsc exited with {status}
Error message
tsc exited with {status} What it means
Error "tsc exited with {status}" thrown in clockworklabs/SpacetimeDB.
Source
Thrown at crates/cli/src/tasks/javascript.rs:64
let mut tsc_path = cwd.join("node_modules/.bin/tsc");
if cfg!(windows) {
tsc_path.set_extension("cmd");
}
if tsc_path.exists() {
let status = std::process::Command::new(tsc_path)
.arg("--noEmit")
.current_dir(&cwd)
.status()
.context("Failed to execute tsc")?;
if !status.success() {
if let Some(code) = status.code()
&& let Ok(code) = u8::try_from(code).map(ExitCode::from)
{
anyhow::bail!(ExitWithCode(code));
}
// For an abnormal exit, show the details of the status.
anyhow::bail!("tsc exited with {status}");
}
} else {
eprintln!(
"tsc not found in node_modules. Make sure you have the `typescript` package \
as a dev-dependency and that your dependencies are installed."
)
}
let mut bundler = Bundler::new(BundlerOptions {
input: Some(vec!["./src/index.ts".to_string().into()]),
cwd: Some(cwd.clone()),
sourcemap: Some(SourceMapType::Inline),
external: Some(rolldown::IsExternal::StringOrRegex(vec![
// Mark the bindings as external so we don't get a warning.
StringOrRegex::Regex(HybridRegex::Optimize(Regex::new("spacetime:sys.*").unwrap())),
])),
platform: Some(rolldown::Platform::Browser), // Browser is the correct choice here because it doesn't inject Node.js polyfills.
shim_missing_exports: Some(false),View on GitHub (pinned to 524b4487d9)
When it happens
Trigger: Thrown at crates/cli/src/tasks/javascript.rs:64 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of clockworklabs/SpacetimeDB@524b4487d9 (2026-08-16).
Data as JSON: /api/errors/5a4b536dcf31980f.
Report an issue: GitHub.