Unable to use `push` or `studio` anymore
Really no idea what happened but all of a sudden I'm getting this messages when trying to run any of those commands
> drizzle-kit push
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/a3tech/Developer/personal_projects/nfc-portal/drizzle.config.ts'
[✓] Pulling schema from database...
Error: Transform failed with 1 error:
/Users/a3tech/Developer/personal_projects/nfc-portal/src/lib/utils.tsx:276:26: ERROR: Expected ">" but found "{"
at failureErrorWithLog (/Users/a3tech/Developer/personal_projects/nfc-portal/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1651:15)
at /Users/a3tech/Developer/personal_projects/nfc-portal/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:849:29
at responseCallbacks.<computed> (/Users/a3tech/Developer/personal_projects/nfc-portal/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:704:9)
at handleIncomingPacket (/Users/a3tech/Developer/personal_projects/nfc-portal/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:764:9)
at Socket.readFromStdout (/Users/a3tech/Developer/personal_projects/nfc-portal/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:680:7)
at Socket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {
errors: [
{
detail: undefined,
id: '',
location: [Object],
notes: [],
pluginName: '',
text: 'Expected ">" but found "{"'
}
],
warnings: []
}
> drizzle-kit push
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/a3tech/Developer/personal_projects/nfc-portal/drizzle.config.ts'
[✓] Pulling schema from database...
Error: Transform failed with 1 error:
/Users/a3tech/Developer/personal_projects/nfc-portal/src/lib/utils.tsx:276:26: ERROR: Expected ">" but found "{"
at failureErrorWithLog (/Users/a3tech/Developer/personal_projects/nfc-portal/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1651:15)
at /Users/a3tech/Developer/personal_projects/nfc-portal/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:849:29
at responseCallbacks.<computed> (/Users/a3tech/Developer/personal_projects/nfc-portal/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:704:9)
at handleIncomingPacket (/Users/a3tech/Developer/personal_projects/nfc-portal/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:764:9)
at Socket.readFromStdout (/Users/a3tech/Developer/personal_projects/nfc-portal/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:680:7)
at Socket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {
errors: [
{
detail: undefined,
id: '',
location: [Object],
notes: [],
pluginName: '',
text: 'Expected ">" but found "{"'
}
],
warnings: []
}
3 Replies
this is the config I've been using since the start of my project
import { type Config } from "drizzle-kit";
import { env } from "~/env";
export default {
schema: "./src/server/db/schema.ts",
dialect: "sqlite",
driver: "turso",
verbose: true,
dbCredentials: {
url: env.DATABASE_URL,
authToken: env.AUTH_TOKEN,
},
} satisfies Config;
import { type Config } from "drizzle-kit";
import { env } from "~/env";
export default {
schema: "./src/server/db/schema.ts",
dialect: "sqlite",
driver: "turso",
verbose: true,
dbCredentials: {
url: env.DATABASE_URL,
authToken: env.AUTH_TOKEN,
},
} satisfies Config;
Can this be a problem from drizzle itself? I'm experiencing the same using postgres.
think so in that case
update: it wasn't
after reviewing the error message I was using a
.tsx
extension in a file used by drizzle which somehow caused it to die