Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arunanshub opened this issue Jan 24, 2025 · 0 comments
Open

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

arunanshub opened this issue Jan 24, 2025 · 0 comments

Comments

@arunanshub
Copy link

Environment

  • Operating System: Linux
  • Node Version: v22.12.0
  • Nitro Version: 2.10.4
  • Package Manager: pnpm@9.15.4

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
@danielroe danielroe marked this as a duplicate of nuxt/nuxt#30737 Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant