cdegrel
cdegrel
Explore posts from servers
CDCloudflare Developers
Created by cdegrel on 10/5/2024 in #workers-help
Use PGLite with Wrangler for local development
Hi everyone, For context, I develop an API with HonoJS and Drizzle. For my local development, I'd like to use PGLite. Database migration works perfectly, I can use Drizzle Studio to see this. However, when I make a query, I already have this error:
export const client = new PGlite('.database')

const users = await client.query('SELECT * FROM users')
console.log('users', users)
export const client = new PGlite('.database')

const users = await client.query('SELECT * FROM users')
console.log('users', users)
✘ [ERROR] Error: [unenv] fs.mkdirSync is not implemented yet!
✘ [ERROR] Error: [unenv] fs.mkdirSync is not implemented yet!
Is it possible to use PGLite with wrangler? If anyone can help me with this 🙂
3 replies
SSolidJS
Created by cdegrel on 9/4/2024 in #support
Warning in build with PandaCSS
No description
1 replies
SSolidJS
Created by cdegrel on 8/18/2024 in #support
Multiple build
Hi, Currently I have a SolidStart application with two different builds, one for SSR renderer hosted on Vercel and another for Static renderer to build an app with Capacitor. I would like to know what would be the best approach through an npm script to build either application, knowing that I have environment variables that differ. Should I create two app.config files or pass variables in config? Thank you in advance for your help, I am not much closer to being able to deploy
7 replies
HHono
Created by cdegrel on 8/2/2024 in #help
Hono Scalar failed with Vercel serverless function
I use @scalar/hono-api-reference to show an Api documentation and my stack use vercel with api directory. When I use vercel dev or in production mode, I have this error
Error: No "exports" main defined in /Users/***/Workspace/***/apps/emails/node_modules/@scalar/hono-api-reference/package.json
at exportsNotFound (node:internal/modules/esm/resolve:303:10)
at packageExportsResolve (node:internal/modules/esm/resolve:593:13)
at resolveExports (node:internal/modules/cjs/loader:591:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:668:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
at Function.Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/Users/***/Workspace/***/apps/emails/api/index.ts:2:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Error: Function `api/index.ts` failed with exit code 1
Error: No "exports" main defined in /Users/***/Workspace/***/apps/emails/node_modules/@scalar/hono-api-reference/package.json
at exportsNotFound (node:internal/modules/esm/resolve:303:10)
at packageExportsResolve (node:internal/modules/esm/resolve:593:13)
at resolveExports (node:internal/modules/cjs/loader:591:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:668:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)
at Function.Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/Users/***/Workspace/***/apps/emails/api/index.ts:2:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Error: Function `api/index.ts` failed with exit code 1
I search a solution about this, if someone can help me 🙂 .
2 replies
SSolidJS
Created by cdegrel on 7/17/2024 in #support
LocalStorage Hydration Mismatch
No description
11 replies