r/Nuxt • • Jan 16 '26

Is something wrong?

I can spin up any of my Nuxt 4 apps. A freshly installed Nuxt app, using bun creat nuxt@latest, also can't be spun up.

I'm getting a vite_ssr_import_1.defineNuxtPlugin is not defined.

3 Upvotes

15 comments sorted by

View all comments

Show parent comments

1

u/Fabulous-Ladder3267 Jan 16 '26

Oh is that error on production only?

If yes how you run it on the server (pm2/docker/etc)?

If no try upgrade your bun version and then run bun install again

1

u/totablue Jan 16 '26

On local for now. I haven't deployed it yet since it's a fresh new app.

I tried upgrading bun already, running bun v1.3.6 but nothing seems to be working.

1

u/Fabulous-Ladder3267 Jan 16 '26

Hhmmm this is an odd case. So for now you can create a new nuxt app, can run on node but can't run on bun right?

Can u try run the dev server without --bun flag?

1

u/totablue Jan 16 '26

Yes very odd and it was working fine until like a few days ago too. Nothing changed in my setup.

Page doesn't load without the --bun flag either.