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

[BUG] create refine-app@latest does not work with bun (bun.sh) on Windows #6402

Open
vinhphm opened this issue Oct 14, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@vinhphm
Copy link

vinhphm commented Oct 14, 2024

Describe the bug

create refine-app@latest does not work with bun (bun.sh) on Windows

Steps To Reproduce

  1. Install Bun from bun.sh on Windows with powershell -c "irm bun.sh/install.ps1 | iex"
  2. Attempt to create a new Refine project with bun create refine-app@latest
  3. The message with the cow saying CRUD apps so sleek, even the cows want in! Let's get mooo-ving with Refine! shows up but then nothing else happens and the script stops.

Expected behavior

The scripts should continue with the setup process just as in other package managers or operating systems.

Packages

Additional Context

No response

@vinhphm vinhphm added the bug Something isn't working label Oct 14, 2024
@BatuhanW
Copy link
Member

Hey @vinhphm I think it's the same issue with #6335 and should be fixed in #6400. Closing the issue as duplicate for now, feel free to re-open if needed after the release. We plan to do the release latest tomorrow.

@BatuhanW BatuhanW closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2024
@aliemir aliemir reopened this Oct 15, 2024
@aliemir
Copy link
Member

aliemir commented Oct 15, 2024

Re-opening the issue, related PRs were for @refinedev/cli.

@vinhphm, after the cow, does the script ends or keeps running without any output?

@vinhphm
Copy link
Author

vinhphm commented Oct 16, 2024

@aliemir The script ends after that the cow without printing anything else.

And I'm not sure if it relates but in existing Refine projects, use Bun to install packages then run bun start would cause this as well:

$ refine dev
node:internal/modules/cjs/loader:1248
  const err = new Error(message);
              ^

Error: Cannot find module '.bin/vite'
Require stack:
- C:\Users\user\Development\test-project\node_modules\@refinedev\cli\dist\cli.cjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1248:15)
    at Function.resolve (node:internal/modules/helpers:145:19)
    at Object.getBin (C:\Users\user\Development\test-project\node_modules\@refinedev\cli\dist\cli.cjs:4:1020)
    at Command.nn (C:\Users\user\Development\test-project\node_modules\@refinedev\cli\dist\cli.cjs:17:1467)
    at Command.listener [as _actionHandler] (C:\Users\pvinh002\Development\test-project\node_modules\@refinedev\cli\node_modules\commander\lib\command.js:482:17)
    at C:\Users\user\Development\test-project\node_modules\@refinedev\cli\node_modules\commander\lib\command.js:1264:65
    at C:\Users\user\Development\test-project\node_modules\@refinedev\cli\node_modules\commander\lib\command.js:1155:33
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\user\\Development\\test-project\\node_modules\\@refinedev\\cli\\dist\\cli.cjs'
  ]
}

Node.js v22.9.0
error: script "start" exited with code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants