2 people reported

All time, since Aug 26.

onResolve skips bare specifiers

“error: Cannot find package '@somemodule/foo' — onResolve is never called.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/bun/issues/4440/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Runtime plugin onResolve never fires for bare specifiers. Bun.plugin onResolve callback never runs for bare package or virtual specifiers, so import fails; onLoad still fires.

Is this your bug?

File my report
Where
Bun.plugin runtime
Error text
error: Cannot find package '@somemodule/foo'
Versions
1.4.0 to 1.4.2
Platforms
Linux
How bad
Breaks a normal workflow.

Not quite your bug?

  1. Plugin onLoad skips CommonJS contents2 people

Original reports2, newest first

  1. Runtime Bun.plugin onResolve does not fire for bare package specifiers#44603
  2. Runtime plugin onResolve never fires for bare or virtual specifiers (onLoad works)#40579

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.