asasinmode
asasinmode
Explore posts from servers
NNuxt
Created by asasinmode on 6/29/2024 in #❓・help
Nuxt 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
import { consola } from 'consola';
import { migrate } from 'drizzle-orm/d1/migrator';

export default defineNitroPlugin(() => {
import.meta.dev && onHubReady(async () => {
consola.withTag('db').info('running migrations');
await migrate(useDrizzle(), { migrationsFolder: 'server/database/migrations' })
.then(() => consola.withTag('db').success('migrations finished'))
.catch(e => consola.withTag('db').error('migrations failed', e));
});
});
import { consola } from 'consola';
import { migrate } from 'drizzle-orm/d1/migrator';

export default defineNitroPlugin(() => {
import.meta.dev && onHubReady(async () => {
consola.withTag('db').info('running migrations');
await migrate(useDrizzle(), { migrationsFolder: 'server/database/migrations' })
.then(() => consola.withTag('db').success('migrations finished'))
.catch(e => consola.withTag('db').error('migrations failed', e));
});
});
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-battles
3 replies
KPCKevin Powell - Community
Created by asasinmode on 6/25/2024 in #front-end
prefers-reduced-motion is a text color animation ok?
No description
6 replies
NNuxt
Created by asasinmode on 6/24/2024 in #❓・help
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
KPCKevin Powell - Community
Created by asasinmode on 5/27/2024 in #front-end
Grid container height doesn't fit all of its children
No description
3 replies
KPCKevin Powell - Community
Created by asasinmode on 5/14/2024 in #front-end
Min height of content, preferred of screen with max
No description
16 replies
KPCKevin Powell - Community
Created by asasinmode on 10/27/2023 in #front-end
Accessible instant action radio group
No description
3 replies
KPCKevin Powell - Community
Created by asasinmode on 6/22/2023 in #front-end
Grid columns with varying width overflow and truncating
8 replies
KPCKevin Powell - Community
Created by asasinmode on 6/21/2023 in #front-end
Text overflow ellipsis once it invades parent padding
7 replies
KPCKevin Powell - Community
Created by asasinmode on 11/29/2022 in #front-end
Stop table container from expanding itself to fit absolute nested children
5 replies
NNuxt
Created by asasinmode on 11/26/2022 in #❓・help
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 discord
4 replies
NNuxt
Created by asasinmode on 11/17/2022 in #❓・help
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
useHead({
bodyAttrs: {
'data-is-nav-open': 'false',
},
})
useHead({
bodyAttrs: {
'data-is-nav-open': 'false',
},
})
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