tauri-docs icon indicating copy to clipboard operation
tauri-docs copied to clipboard

docs: fix command to create next app using bun

Open zeybek opened this issue 10 months ago • 6 comments

What kind of changes does this PR include?

  • Minor content fixes (broken links, typos, etc.)
  • Changes to the docs site code

Description

  • What does this PR change? Give us a brief description. It will fix typo in command to create next app with bun
  • Did you change something visual? No

zeybek avatar Apr 19 '24 14:04 zeybek

Deploy Preview for tauri ready!

Name Link
Latest commit 4a8a8a04282464d80ca92ae3f858927443153311
Latest deploy log https://app.netlify.com/sites/tauri/deploys/66227aa04c148100087de4f5
Deploy Preview https://deploy-preview-2077--tauri.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Apr 19 '24 14:04 netlify[bot]

Hi this was recently changed in #2041, did bun changed the command again? Could you share where/when they changed, and, if any, announcement?

bunx create next-app --use-bun Still works for me.

https://bun.sh/guides/ecosystem/nextjs

hi @vasfvitor, I'm currently using [email protected] and existing command for bun is not working, to make it work we can use one of the following commands

  • bun create next-app
  • bunx create-next-app

zeybek avatar Apr 19 '24 14:04 zeybek

image image

vasfvitor avatar Apr 19 '24 14:04 vasfvitor

if this is a platform difference (I'm on Windows) please share the source where we can verify this to be the case

vasfvitor avatar Apr 19 '24 14:04 vasfvitor

@vasfvitor I'm on MacBook Pro M1 and Sonoma 14.3.1 has been installed, also as we can see on NextJS official documentation, command has been given as bunx create-next-app, please check here and here

Btw, it is weird that you can run bunx with create next-app since it is equivalent of npx

zeybek avatar Apr 19 '24 15:04 zeybek

if this is a platform difference (I'm on Windows) please share the source where we can verify this to be the case

It might be a platform thing I've tested both and the new command works me, the older doesn't. Also note I'm as well on macOS 😁

dreyfus92 avatar Apr 19 '24 17:04 dreyfus92

image

image

No screenshot for Mac but I tried it on my work Sonoma 14.1 Mac and the results are the same.

The existing one works, bun create next-app --use-bun, the proposed one doesn't. Closing.

simonhyll avatar May 03 '24 18:05 simonhyll