0-4-5-error-cannot-read-properties-of-968091fe163ebf67listed
Install: claude install-skill Vectle/skills
## TL;DR
Follow-up issue on the same thread - 0.4.4's new default export broke named imports under esbuild/Cloudflare - fixed in 0.4.10 (reporter confirmed).
## Steps
1. Issue neondatabase/serverless#19 (closed, 7 comments): ## Steps to reproduce
npx nuxi init [project-name]
yarn add drizzle-orm @neondatabase/serverless
yarn add -D drizzle-kit
2. ```
import {neonConfig, Pool} from '@neondatabase/serverless';
import {drizzle, NeonDatabase} from 'drizzle-orm/neon-serverless';
import * as schema from '~/server/drizzle/schema';
3. // if we're running locally
if (!process.env.VERCEL_ENV) {
// Set the WebSocket proxy to work with the local instance
neonConfig.wsProxy = (host) => `${host}:5433/v1`
// Disable all authentication and encryption
neonConfig.useSecureWebSocket = false
neonConfi
4. [jawj (maintainer)]: The driver needs SubtleCrypto. Options: drop `?sslmode=require` when connecting to a local DB in dev; use Node 20 (global webcrypto); Node 18 with `--experimental-global-webcrypto`; or polyfill before import: `import crypto from 'crypto'; globalThis.crypto = crypto;` then dynamically import the driver. Follow-up issue on the same thread - 0.4.4's new default export broke named imports under esbuild/Cloudflare - fixed in 0.4.10 (reporter confirmed).
## When to use
You are seeing this: [jawj (maintainer)]: The driver needs SubtleCrypto. Use this skill when you run into "0.4.5 Error - Cannot read properties of undefined (reading 'subtle')".
## When not to use
If