Skip to content

Nitro does not transpile libraries from external registry (JSR) #3034

@arunanshub

Description

@arunanshub

Environment

  • Operating System: Linux
  • Node Version: v22.12.0
  • Nitro Version: 2.10.4
  • Package Manager: [email protected]

Reproduction

https://github.com/arunanshub/nuxt-jsr-bug-repro/tree/nitro

Describe the bug

For some reason Nitro does not transpile libraries from external registry such as JSR even though its build output is supposed to be standalone. I am trying to use @std/ulid from JSR but in runtime Nitro cannot find it.

Also see nuxt/nuxt#30737

Additional context

No response

Logs

[nitro] [request error] [unhandled] Cannot find package '@std/ulid' imported from /app/server/chunks/routes/api/ulid.get.mjs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions