asasinmode
Explore posts from serversNuxt hub wrangler `Failed to initialize wrangler bindings proxy`
I have a nuxt hub project initialized with
pnpx nuxthub init my-app
and at some point of it I deleted .nuxt
, node_modules
.data
and I think there was a directory .wrangler
because I was getting type errors and I was trying to fixed them
After fixing the errors now when I run pnpm dev
console shows the logs in message below (couldn't fit in in this post) and I ignored it because the project seemed to be running fine until I got to adding some database stuff. After adding a migrations plugin
the project stopped working and I'm guessing it's related to this error. As you can see in the logs above the last log is [db] running migrations
and nothing else goes on after that. When I try to open the project at localhost:3000
it's just stuck on nuxt loading screen and console shows GET http://localhost:3000/ 503/service unavailable
Running pnpx nuxi dev --remote
works fine, the page works, migrations are executed and I can browse my database on admin.hub.nuxt.com
and locally in dev tools but the local dev build is broken
Here's a link to repository: https://github.com/asasinmode/chat-room-battles3 replies
Read and set a value to use inside of template during build time
I want to access my project's version inside my template, the "version" field in
package.json
. I'd like to get it programmatically instead of having to manually update it, since it's going to be updated with bumpp
on releases.
Is it possible for me to make nuxt, at some point in the build step (and ideally in dev too) read package.json
file then set like useRuntimeConfig().public.appVersion
?3 replies
Nuxt prepare error cannot destructure property 'nuxt' of 'this'
My Vercel deploy is failing on
pnpm i
script. All packages install properly but postinstall script nuxt prepare
throws an error, any idea how to fix that? Attaching logs in next message since they're too big for discord4 replies
How to apply initial data attributes to body?
Hello, I was using I think nuxt rc 13 and to set data attribute on body tag I used bodyAttrs like so
But after updating to Nuxt 3.0.0 (at least that's when I think it broke, pretty sure it worked earlier) it no longer does anything. Any idea how to apply initial data attribute to body tag?
16 replies