emil
03/11/2026, 6:00 AMimport { toBamlError, HTTPRequest, ClientRegistry } from "@boundaryml/baml"
> ^
> SyntaxError: The requested module '@boundaryml/baml' does not provide an export named 'HTTPRequest'
> at #_instantiate (node:internal/modules/esm/module_job:254:21)
> at async ModuleJob.run (node:internal/modules/esm/module_job:369:5)
> at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:691:26)
> at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)
minimal repo to reproduce this: https://github.com/emilsoman/baml-hono
error occurs on "npm run dev"emil
03/11/2026, 6:05 AMemil
03/11/2026, 6:05 AMVaibhav (BAML 🐑)
03/11/2026, 3:17 PMemil
03/11/2026, 5:44 PM"@boundaryml/baml": "^0.220.0"emil
03/11/2026, 5:45 PMVaibhav (BAML 🐑)
03/11/2026, 6:55 PMMiguel Cárdenas
03/12/2026, 2:07 AMHTTPRequest is only exported as a type but is being imported as a runtime export, which causes the ESM error in Node.
I opened a small fix PR here in case it helps: https://github.com/BoundaryML/baml/pull/3237
Happy to adjust if there's a preferred way to handle it.emil
03/23/2026, 4:45 PM