oven-sh/bun · error · bundler::Error

ResolveMessage

Error message

ResolveMessage

What it means

Sentinel variant of the bundler Error enum: module resolution produced a resolve message failure (a module specifier could not be resolved to a file), re-classified into the bundler's error enum so resolution diagnostics flow through the same channel as other build errors.

Solutions

  1. Fix or install the module named in the resolve message
  2. Check extensions/aliases/tsconfig paths for the failing specifier
  3. Ensure node_modules is installed and intact (reinstall if corrupted)
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/bundler/error.rs:39 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16). Data as JSON: /api/errors/53ef893d4962e150. Report an issue: GitHub.

Appendix: source

Thrown at src/bundler/error.rs:39

    #[error("MultipleOutputFilesWithoutOutputDir")]
    MultipleOutputFilesWithoutOutputDir,
    #[error("InvalidJSON")]
    InvalidJSON,
    #[error("Fail")]
    Fail,
    #[error("ParserError")]
    ParserError,
    #[error("SyntaxError")]
    SyntaxError,
    #[error("MinifyError")]
    MinifyError,
    #[error("InvalidNativePlugin")]
    InvalidNativePlugin,
    #[error("EmptyAST")]
    EmptyAST,
    #[error("FormatError")]
    FormatError,
    #[error("ResolveMessage")]
    ResolveMessage,
    #[error("JSError")]
    Js(bun_core::JsError),
    #[error(transparent)]
    Sys(#[from] bun_errno::SystemErrno),
    #[error(transparent)]
    Alloc(#[from] bun_alloc::AllocError),
    #[error(transparent)]
    Core(#[from] bun_core::Error),
    #[error(transparent)]
    JsPrinter(#[from] bun_js_printer::Error),
    #[error(transparent)]
    Resolver(#[from] bun_resolver::Error),
    #[error(transparent)]
    Dotenv(#[from] bun_dotenv::Error),
    #[error(transparent)]
    JsParser(#[from] bun_js_parser::Error),
    #[error(transparent)]

View on GitHub (pinned to 8c5296ac45)