Closed austeane closed 3 months ago
Fix the TypeError by correcting the import and instantiation of the Client from @vercel/postgres.
Client
@vercel/postgres
src/routes/api/drills/+server.js
import { Client } from '@vercel/postgres';
import { createClient } from '@vercel/postgres';
const client = new Client();
const client = createClient();
src/routes/api/practice-plans/+server.js
For more details, open the Copilot Workspace session.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Fix the TypeError by correcting the import and instantiation of the
Client
from@vercel/postgres
.src/routes/api/drills/+server.js
import { Client } from '@vercel/postgres';
withimport { createClient } from '@vercel/postgres';
const client = new Client();
withconst client = createClient();
src/routes/api/practice-plans/+server.js
import { Client } from '@vercel/postgres';
withimport { createClient } from '@vercel/postgres';
const client = new Client();
withconst client = createClient();
For more details, open the Copilot Workspace session.