Skip to content

Not working with Bun #2268

@MickL

Description

@MickL

Describe the bug

When using Bun for starting my Nitro app using bun .output/server/index.mjs I get:

error: Cannot find package 'stripe' from '/opt/render/project/myproject/.output/server/chunks/routes/product/_id/checkout.mjs'
      cause: error: Cannot find package 'stripe' from '/opt/render/project/myproject/.output/server/chunks/routes/product/_id/checkout.mjs',

On the other hand it works with the exact same built code when starting the app with node: node .output/server/index.mjs

To Reproduce

If required I can create a reproduction repo

Expected behavior

Code snippets

OS

macOS

Bun version

1.2.5

Library version

17.7.0

API version

Additional context

I have a lot of packages in my project, Stripe is the only one that ever gave me this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions