phaserjs / template-bun

A Phaser 3 project template that uses Bun for bundling
MIT License
13 stars 2 forks source link

Problem with using Bun template #1

Open bnicolucci opened 2 months ago

bnicolucci commented 2 months ago

Working with a new machine and attempted to use the Bun template and got the following error. Bun is installed and working, BTW

$ bun log.js dev & bunx --bun vite --config vite/config.dev.mjs error: Failed to run script dev due to error Background commands "&" are not supported yet.

Anyone have a similar problem?

gammafp commented 2 months ago

Hello. What operating system do you use?

bnicolucci commented 2 months ago

Windows 10 BTW, running 'bun run dev-nolog' worked fine

bnicolucci commented 2 months ago

I changed the '&' to '&&' in the package.json file and that seemed to sort it

bnicolucci commented 2 months ago

One other quick thing, on the page you have the following: npm run dev-nolog npm run build-nolog Those should say 'bun' instead of 'npm'

Thanks for the great work on this. Hopefully you can sort out a fix, though as I mentioned, at least for Windows, using '&&' instead of '&' does seem to sort the issue