Cetus πŸ”›πŸ”
Cetus πŸ”›πŸ”
Explore posts from servers
NNuxt
Created by Cetus πŸ”›πŸ” on 11/5/2024 in #❓・help
cannot deploy on netlify with nuxt v.3.14 (compatibility version 4)
i try to publish a basic app on netlify, with nuxt v3.14 and compaibility version 4. Here's the code of the app (here). Find the error here: https://pastes.dev/fpPUqq6s50
10 replies
NNuxt
Created by Cetus πŸ”›πŸ” on 4/19/2024 in #❓・help
Nuxt eslint, sort tailwindcss
hello, here you say that prettier is useless with the new eslint module, but then how to sort tailwind classes? With prettier I was using prettier-plugin-tailwindcss but is there a solution with eslint?
5 replies
CCoder.com
Created by Cetus πŸ”›πŸ” on 1/9/2024 in #help
I get 'Error: expected arch to be one of [amd64 armv7 arm64], got arm' but the CPU is armv7
No description
84 replies
DTDrizzle Team
Created by Cetus πŸ”›πŸ” on 10/26/2023 in #help
drizzle-zod refine enum
Here's my users table and the schema generated with drizzle-zod that I want to modify. As you can see, the role column is an enum, but I want to modify the error message as I did with email and password. I've tried several solutions but nothing works, could you help me?
export const roleEnum = pgEnum('role', ['USER', 'ADMIN'])

export const users = pgTable('users', {
id: serial('id').primaryKey(),
email: varchar('email', {
length: 256,
})
.unique()
.notNull(),
password: varchar('password', {
length: 256,
}).notNull(),
role: roleEnum('role').notNull(),
})

export const insertUserSchema = createInsertSchema(users, {
email: schema => schema.email.email("Format de l'adresse email incorrect"),
password: schema => schema.password.min(8, "Le mot de passe doit contenir au moins 8 caractères"),
})
export const roleEnum = pgEnum('role', ['USER', 'ADMIN'])

export const users = pgTable('users', {
id: serial('id').primaryKey(),
email: varchar('email', {
length: 256,
})
.unique()
.notNull(),
password: varchar('password', {
length: 256,
}).notNull(),
role: roleEnum('role').notNull(),
})

export const insertUserSchema = createInsertSchema(users, {
email: schema => schema.email.email("Format de l'adresse email incorrect"),
password: schema => schema.password.min(8, "Le mot de passe doit contenir au moins 8 caractères"),
})
3 replies
NNuxt
Created by Cetus πŸ”›πŸ” on 8/23/2023 in #❓・help
WebSocket server error: Port is already in use
hey, I'm trying to run two nuxt apps in a monorepo with pnpm. I first changed the port of one of my two apps to 3001.
devServer: {
port: 3001
}
devServer: {
port: 3001
}
But now there is an error with the websocket that encounters a conflict with the port. Do you have a solution?
6 replies
CDCloudflare Developers
Created by Cetus πŸ”›πŸ” on 7/19/2023 in #pages-help
CF PAGES: Deploying vue.js (via vitejs) using yarn
Hello, I'm trying to deploy a vue.js application (created with vite) on cloudflare pages. I used yarn and I have the impression that the problem comes from there (I could be wrong). site: https://cps-counter.pages.dev account id: 8d66c0d8ba7d39049166f7cfc2e78866 error, repo & deployment id are in logs (file)
4 replies
NNuxt
Created by Cetus πŸ”›πŸ” on 4/23/2023 in #❓・help
Access runtimeConfig from tests
Hey, I'm trying to access the runtime config from my tests, I've tried several things but nothing works.
await setup({
nuxtConfig: {
runtimeConfig: {
public: {
apiBasePath: 'http://localhost:3000/api/v1'
}
}
}
})

const config = useRuntimeConfig() // ReferenceError: useRuntimeConfig is not defined
await setup({
nuxtConfig: {
runtimeConfig: {
public: {
apiBasePath: 'http://localhost:3000/api/v1'
}
}
}
})

const config = useRuntimeConfig() // ReferenceError: useRuntimeConfig is not defined
import {useRuntimeConfig} from "#app";

describe('Login', async () => {
await setup({
nuxtConfig: {
runtimeConfig: {
public: {
apiBasePath: 'http://localhost:3000/api/v1'
}
}
}
})

const config = useRuntimeConfig() // Error: Failed to load url #app (resolved id: #app) in [...]/test/api/login.spec.ts. Does the file exist?
import {useRuntimeConfig} from "#app";

describe('Login', async () => {
await setup({
nuxtConfig: {
runtimeConfig: {
public: {
apiBasePath: 'http://localhost:3000/api/v1'
}
}
}
})

const config = useRuntimeConfig() // Error: Failed to load url #app (resolved id: #app) in [...]/test/api/login.spec.ts. Does the file exist?
8 replies
NNuxt
Created by Cetus πŸ”›πŸ” on 4/15/2023 in #❓・help
getQuery() with a url doesn't work very well?
Using getQuery, I want to get a parameter called url. For short url it works (https://nuxt.com/modules gives https://nuxt.com/modules). But with a more complex URL like this: https://portal.azure.com/#@eduetatfr.onmicrosoft.com/resource/subscriptions/[my id]/resourceGroups/DefaultResourceGroup-westeurope/overview , I only get https://portal.azure.com and not the whole URL. Code:
const { url } = await getQuery(event);
const { url } = await getQuery(event);
7 replies
NNuxt
Created by Cetus πŸ”›πŸ” on 3/31/2023 in #❓・help
dragbar with nuxt and tailwind
hello, do you know how i could make a drag bar to change the size of the windows like in replit for example. I would like the bars to be generated automatically (like in replit, if you add windows the bars to change the size of the windows will be set correctly and will be functional).I use tailwind and nuxt 3.
1 replies