Skip to content

[Bug]: resolve error printed as debug message #2033

@Boshen

Description

@Boshen

Reproduction link or steps

I'm testing Rolldown in https://github.com/oxc-project/monitor-oxc/tree/rolldown

pnpm install
pnpm run rolldown

It's currently producing debug error message for resolve errors. The process also hangs.

What is expected?

Nicer error messages. No hang.

What is actually happening?

let resolved_err = anyhow::format_err!(
"Unexpectedly failed to resolve dependencies of {importer}. Got errors {build_errors:#?}",
importer = self.resolved_id.id,
);

 ERROR  Rolldown internal error: Unexpectedly failed to resolve dependencies of /Users/boshen/oxc/monitor-oxc/node_modules/.pnpm/eslint-plugin-import@2.29.1_@typescript-eslint+parser@8.2.0_eslint@9.9.0_jiti@1.21.6_supports_zmswtkamuftpl7jgsbtw22axge/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js. Got errors [
    (
        RawImportRecord {
            module_request: Rstr(
                "eslint/lib/cli-engine/file-enumerator",
            ),
            kind: Require,
            namespace_ref: SymbolRef {
                owner: 1606,
                symbol: SymbolId(
                    311,
                ),
            },
            module_request_start: 1710,
            meta: ImportRecordMeta(
                0x0,
            ),
        },
        PackagePathNotExported(
            "./lib/cli-engine/file-enumerator",
            "/Users/boshen/oxc/monitor-oxc/node_modules/.pnpm/eslint-plugin-import@2.29.1_@typescript-eslint+parser@8.2.0_eslint@9.9.0_jiti@1.21.6_supports_zmswtkamuftpl7jgsbtw22axge/node_modules/eslint/package.json",
        ),
    ),

System Info

None

Any additional comments?

No response

Metadata

Metadata

Assignees

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions