You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS C:\Users\kjk\src\edna> bunx @tailwindcss/upgrade
≈ tailwindcss v4.0.12
│ Searching for CSS files in the current directory and its subdirectories…
│ ↳ Linked `.\tailwind.config.cjs` to `.\src\main.css`
│ Migrating JavaScript configuration files…
│ ↳ Could not load the configuration file: Can't resolve '..\..\..\..\..\..\..\..\..\src\edna\tailwind.config.cjs' in
│ 'C:\Users\kjk\AppData\Local\Temp\bunx-329713139-@tailwindcss\upgrade@latest\node_modules\@tailwindcss\upgrade\dist'
npx @tailwindcss/upgrade doesn't fail.
Note: the path ..\..\..\..\..\..\..\..\..\src\edna\tailwind.config.cjs relative to C:\Users\kjk\AppData\Local\Temp\bunx-329713139-@tailwindcss\upgrade@latest\node_modules\@tailwindcss\upgrade\dist is correct.
It seems some node compat function doesn't handle relative path which results in failure to open that file. Not sure if that's just Windows or all platforms, I only tested Windows.
Additional information
No response
The text was updated successfully, but these errors were encountered:
Note that as you have node installed and not using --bun, this seems to be an issue with what bunx is passing to node (and being incorrect compared to npx)
What version of Bun is running?
1.2.4+fd9a5ea66
What platform is your computer?
Microsoft Windows NT 10.0.26100.0 x64
What steps can reproduce the bug?
git clone https://github.com/kjk/edna.git
cd edna
git checkout 026c6342fff06e0804532e3ff05ec7d143b3d8ac
@tailwindcss/upgrade
(https://tailwindcss.com/docs/upgrade-guide) withbunx
instead ofnpx
:bunx @tailwindcss/upgrade
What is the expected behavior?
It should work just like
npx @tailwindcss/upgrade
What do you see instead?
It fails with:
npx @tailwindcss/upgrade
doesn't fail.Note: the path
..\..\..\..\..\..\..\..\..\src\edna\tailwind.config.cjs
relative toC:\Users\kjk\AppData\Local\Temp\bunx-329713139-@tailwindcss\upgrade@latest\node_modules\@tailwindcss\upgrade\dist
is correct.It seems some node compat function doesn't handle relative path which results in failure to open that file. Not sure if that's just Windows or all platforms, I only tested Windows.
Additional information
No response
The text was updated successfully, but these errors were encountered: