node:internal/process/esm_loader:34
internalBinding('errors').triggerUncaughtException(
^
[Error: × Expected a semicolon
╭─[file:///home/user/github/project/node_modules/postgres/src/large.js:7:1]
4 │ return new Promise(async(resolve, reject) => {
5 │ await sql.begin(async sql => {
6 │ let finish
7 │ !oid && ([{ oid }] = await sql`select lo_creat(-1) as oid`)
· ───
8 │ const [{ fd }] = await sql`select lo_open(${ oid }, ${ mode }) as fd`
9 │
10 │ const lo = {
╰────
Caused by:
Syntax Error] {
code: 'GenericFailure'
}
Description:
The latest release has caused an issue with the postgres.js library.
Steps to reproduce:
node --import @swc-node/register/esm-register script.tsEnvironment:
Error log:
Code snippet: