phaserjs / template-bun

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

Problem with using Bun template #1

Open bnicolucci opened 1 week ago

bnicolucci commented 1 week 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 1 week ago

Hello. What operating system do you use?

bnicolucci commented 1 week ago

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

bnicolucci commented 1 week ago

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

bnicolucci commented 1 week 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