Can't use extract-pg-schema in server action
Unanswered
New Guinea Freshwater Crocodile posted this in #help-forum
New Guinea Freshwater CrocodileOP
I'm trying to use library
I get the following error:
How do I fix this?
extract-pg-schema in a server action like so:"use server";
import { extractSchemas } from "extract-pg-schema";
// in fn
await extractPostgresSchema(connectionString);I get the following error:
Failed to compile
../../node_modules/.pnpm/knex@3.1.0_pg@8.11.4/node_modules/knex/lib/dialects/oracledb/index.js:44:21
Module not found: Can't resolve 'oracledb'How do I fix this?
13 Replies
install the
oracledb ?New Guinea Freshwater CrocodileOP
@averydelusionalperson
oracledb is already a dependency of extract-pg-schema, why do I need to install it?cause it says, the
oracledb is not foundmaybe it failed to install the dependency
try to install it manually
New Guinea Freshwater CrocodileOP
ok ill try now
hold on
now i get :
Module not found: Can't resolve 'pg-query-stream'
Module not found: Can't resolve 'pg-query-stream'
ok wait, may be fixed
why did it fail to install those dependencies?
Now I get this @averydelusionalperson
Unhandled Runtime Error
Error: ENOENT: no such file or directory, open '(action-browser)/../../node_modules/.pnpm/jsonpath@1.1.1/node_modules/jsonpath/include/module.js'(when I try running)
Saluki
jsonpath:
Error: EBADF: bad file descriptor, fstat
when I add the line
Error: EBADF: bad file descriptor, fstat
when I add the line
jsonpath.query(surveys,$..${keyValue});