Skip to content

@astrojs/upgrade helper package fails on tailwind v4 projects when using bun x #14778

@ardzero

Description

@ardzero

Astro Info

Astro                    v5.15.8
Node                     v22.20.0
System                   Windows (x64)
Package Manager          bun
Output                   static
Adapter                  none
Integrations             @astrojs/react
                         @astrojs/sitemap

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

When using bunx (bun x @astrojs/upgrade), projects containing tailwind v4 the upgrade helper package fails saying the migration tool can only be run on v3 project.
npx @astrojs/upgrade works fine.

What's the expected result?

When running bun x @astrojs/upgrade it give the error below:

Image

When using npx @astrojs/upgrade :

Image

Note:

Since StackBlitz doesn't support bun (as far as I know) I'm linking the repo of the project where I got the error.

Link to Minimal Reproducible Example

https://github.com/ardzero/bunestro

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P3: minor bugAn edge case that only affects very specific usage (priority)pkg: upgradeRelated to `@astrojs/upgrade` (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions