-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
bun --bun run dev fails with nuxt #4743
Comments
Same here man. I was excited to try it but it hangs. Sometimes I get the nuxt logo loading screen and stuck. Other times the browser window stays empty. I hope this gets solved. In the meantime I will keep playing with vanilla bun. Cheers! Edit: I'm on Windows 11 Home using Ubuntu (WSL) . |
Dup #3771? |
hmm, does nuxt work with bun 1.0 ? is it stable ? any gotchas ? should one make the switch ? |
This runs with Node runtime not with Bun so makes no sense. |
I also have issues running a fresh Nuxt project. But for me it just gets stuck loading a welcome page (Chrome shows spinner and the page never loads). I did what this guide says: https://bun.sh/guides/ecosystem/nuxt |
UpdateIn my case, I managed to get it working on replit. There's a template with bun x1, and I did the same steps to create a nuxt project, install deps and run the dev server, and it worked (the only issue is that the The difference is, in my computer I'm on Windows 11 with Ubuntu WSL terminal, and on replit it's pure Linux terminal. I'm also following this guide: https://bun.sh/guides/ecosystem/nuxt This is what my browser window looks like after running |
Experiencing the same issues on my WSL instance. Following instructions to run with bun on the site here resulted in an error saying |
I didn't even get any Error message that's why it's so hard to find out what's wrong with it. I was expecting the latest Nuxt to be compatible via Wsl but that's not the case. I hope we get some response about this issue. |
Same here on WSL Ubuntu. Runs fine on Node in Windows. |
I'm using sveltekit but vite dev does not work for me as well on WSL. Windows 11 |
Continuous with error. Nuxt 3.7.2 (Vite 4.4.9) Gravando.2023-09-12.225019.mp4 |
Clean install, as per Bun documentation. Gravando.2023-09-12.230753.mp4 |
I've tried to get nuxi build --bun working on fairly big project, but mostly got SIGSEGV. |
We are streaming a few patches to the nuxi to address some relevant issues and i am constantly checking with a WSL2 env. Would be nice if you can try with |
|
For me it doesn't load anything, blank screen and the favicon running |
#5360 does not fix it. In the hacker news demo app, it loads the page once and then fails to load subsequently. |
I'm having exactly the same issue but I'm on Linux (Fedora 38) and not WSL like everyone else in this thread. |
1.0.2 is broke for me on Mac, latest OS updates, latest bun, fresh project following the guide from Bun's example pages. |
Yup no issues here today after upgrading to 1.0.13. |
Thank you for your continuous work on this! 1.0.13 fixed it for macOS as well 🎉
I'm on macOS 14.1.1 (23B81). |
Still getting error on WSL Ubuntu 22.04 It worked initially but then got into Tailwindcss and stopped working
package.json {
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"@nuxt/devtools": "latest",
"autoprefixer": "^10.4.16",
"nuxt": "^3.8.2",
"postcss": "^8.4.31",
"tailwindcss": "^3.3.5",
"vue": "^3.3.8",
"vue-router": "^4.2.5"
}
} |
@scottix have you tried the nuxt tailwind module? @nuxtjs/tailwindcss (installed via devtools! ♥) works for me in a naked nuxt3 install:
|
Yes this method is working. |
I still have this issue with v 1.0.14, but only when using the Docker container:
I get one of the following errors:
or
|
I can confirm that with
What I tried so far on MacOS 13.6 (22G120):
My Dockerfile:
|
Today it was working the whole day and I guess the problem was mounting node_modules into the docker container for easier development. Excluding node_modules within docker-compose made it work. But even with the newly released 1.0.16 I have this problem again now:
Running locally works on Mac OS. What I figured out is that the error started when I tried adding @nuxt/image. But even after removing it (because with ipx, the images are just not found) I keep receiving:
and
I deleted node_modules and re-created my docker container (because inside the container I have an isolated node_modules directory). But nothing works anymore. |
in my own case,
with Pop!_OS 22.04 LTS
To solve the problem temporary, I did disable
Result from my device is like this
and sometime I need to run command |
Environment
DescriptionIn my case, I disabled devtools, ran
Screen Capturechrome_udQrnFl8jl.mp4(apologies for the unusual light mode, I'm experimenting 👀) Final WordsI'm still thinking the issue is related to HMR... |
I have the issue and message when I run |
Seems to be working well for us with nuxt these days.
…-Karl Tiedt
On Sun, Mar 24, 2024 at 12:58 AngelHdz Multimedia ***@***.***> wrote:
😭 bun is sooo fast but can't use it with Nuxt!!!
Created a new Nuxt project, bunx --bun nuxi upgrade -f, bun --bun run dev,
changed some code in the ~/app.vue, error!
image.png (view on web)
<https:/oven-sh/bun/assets/10191085/ba5c3789-5cc3-49f1-b319-f8f3392f8fbb>
—
Reply to this email directly, view it on GitHub
<#4743 (comment)>, or
unsubscribe
<https:/notifications/unsubscribe-auth/AAAXXWQ3VNWOUZK3ZQI4IQLYZ4H35AVCNFSM6AAAAAA4RXIRBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA4DMOBUG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I just noticed that when I removed the --bun flag, the error seems to have gone... 🤔 |
`bun run dev` as the utility recommended when I setup my nuxt.
…-Karl Tiedt
On Sun, Mar 24, 2024 at 1:37 PM AngelHdz Multimedia <
***@***.***> wrote:
Seems to be working well for us with nuxt these days.
… <#m_-6959200473804082731_>
-Karl Tiedt
On Sun, Mar 24, 2024 at 12:58 AngelHdz Multimedia *@*.*> wrote: 😭 bun is
sooo fast but can't use it with Nuxt!!! Created a new Nuxt project, bunx
--bun nuxi upgrade -f, bun --bun run dev, changed some code in the
~/app.vue, error! image.png (view on web)
https:/oven-sh/bun/assets/10191085/ba5c3789-5cc3-49f1-b319-f8f3392f8fbb
<https:/oven-sh/bun/assets/10191085/ba5c3789-5cc3-49f1-b319-f8f3392f8fbb>
— Reply to this email directly, view it on GitHub <#4743 (comment)
<#4743 (comment)>>, or
unsubscribe
https:/notifications/unsubscribe-auth/AAAXXWQ3VNWOUZK3ZQI4IQLYZ4H35AVCNFSM6AAAAAA4RXIRBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA4DMOBUG4
<https:/notifications/unsubscribe-auth/AAAXXWQ3VNWOUZK3ZQI4IQLYZ4H35AVCNFSM6AAAAAA4RXIRBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA4DMOBUG4>
. You are receiving this because you commented.Message ID: @.*>
bun run dev or bun --bun run dev or both?
I just noticed that when I removed the --bun flag, there error seems to
have gone... 🤔
I've been changing the code, installing deps, restarting the server, and
it's working...
—
Reply to this email directly, view it on GitHub
<#4743 (comment)>, or
unsubscribe
<https:/notifications/unsubscribe-auth/AAAXXWTO7INXKAHVVIFGYIDYZ4MORAVCNFSM6AAAAAA4RXIRBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHA4TOMRXGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@ktiedt the problem never was with |
So, I should assume that I got it working without the |
Wooops you are correct I should have refreshed myself on the details of
this ticket first. My apologies.
…-Karl Tiedt
On Sun, Mar 24, 2024 at 14:26 Louis Ramos ***@***.***> wrote:
@ktiedt <https:/ktiedt> the problem never was with bun run dev
This commands simply launch the node process like any other package
manager would (pnpm run dev, npm run dev etc)
The issue is running Nuxt with Bun as the runtime, that what the --bun
flag does, it tells bun to run on with bun as the runtime instead of node
—
Reply to this email directly, view it on GitHub
<#4743 (comment)>, or
unsubscribe
<https:/notifications/unsubscribe-auth/AAAXXWXBBDQCACQ5OV552ODYZ4SG3AVCNFSM6AAAAAA4RXIRBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHEYTIMZTG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
+1 using docker image $ bun --bun x nuxi-edge@latest build
Nuxt 3.11.1 with Nitro 2.9.5
[nuxt:tailwindcss] ℹ Using default Tailwind CSS file
ℹ Building client...
ℹ vite v5.2.7 building for production...
ℹ transforming...
Segmentation fault $ bunx --bun nuxi info
Working directory: /app
Nuxt project info:
------------------------------
- Operating System: Linux
- Node Version: v21.6.0
- Nuxt Version: 3.11.1
- CLI Version: 3.11.1
- Nitro Version: 2.9.5
- Package Manager: [email protected]
- Builder: -
- User Config: ssr, srcDir, modules, css, build, runtimeConfig, colorMode, devtools, typescript
- Runtime Modules: @nuxt/[email protected]
- Build Modules: -
------------------------------ $ bun run build # nuxt build
Nuxt 3.11.1 with Nitro 2.9.5
[nuxt:tailwindcss] ℹ Using default Tailwind CSS file
ℹ Building client...
ℹ vite v5.2.7 building for production...
ℹ transforming...
error: script "build" was terminated by signal SIGSEGV (Address boundary error)
Segmentation fault |
UpdateI just tried Bun Windows. Awesome work to the team. But Nuxt still not working. So I'm back at point zero... 😭 |
I confirm we still can't use Tailwind with Bun 1.1.3 on Windows.. :(
|
I think this was fixed in #11635 and #11494. Running If you're still running into this issue in Bun v1.1.13 or later, please let us know and I'll re-open the issue. @mxrch unfortunately that issue is unrelated, but it should at least have a better error message in the next release as we have added the variable name to |
Running it in production |
this sounds like a nuxt issue, you might want to fall back to pnpm build and pnpm preview to test it |
Actually building and running it using nodejs is working this error only appears with bun and I think this because of @authjs/core library
|
FYI anyone else finding this closed issue still an issue as of July 2024 make sure you also have node installed. I had error on fresh ubuntu 24.04 with only bun - node was not installed. Once I added node (via nvvm) everything worked well. I was mistaken and thought bun was independent from node. |
@Jarred-Sumner I am still facing the same error with Bun Just after I added Supabase
nuxt version |
What version of Bun is running?
1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983
What platform is your computer?
Darwin 22.4.0 arm64 arm
What steps can reproduce the bug?
install fresh nuxt with bun and try to run
bun --bun run dev
What is the expected behavior?
It works
What do you see instead?
The app is not starting.
No errors in console, no network failures, app just hangs on request.
Build log also has nothng strange. ℹ Vite client warmed up in 6487ms, ✔ Nitro built in 1636 ms
But it just not working
Additional information
If I run
bun run dev
(without --bun) then everything works fine. But as of docs that means that in this case nuxt cli uses node. Which is not present for example in dockerThe text was updated successfully, but these errors were encountered: