Brendonovich / prisma-client-rust

Type-safe database access for Rust
https://prisma.brendonovich.dev
Apache License 2.0
1.75k stars 106 forks source link

Issue using nodejs generator #354

Closed JulianRuiseco closed 1 year ago

JulianRuiseco commented 1 year ago

We are trying to make a small service to run some JS code alongside our rust server.

We placed the following

generator nodejs { provider = "prisma-client-js" output = "../op3_parser/node_modules/.prisma/client" }

and received the following error

` Error: Generator at path\bob_server\node_modules\@prisma\client\generator-build\index.js could not start:

node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module 'path\bob_server--max-old-space-size=8096' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function._resolveFilename (pkg/prelude/bootstrap.js:1955:46) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.runMain (pkg/prelude/bootstrap.js:1983:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }

`

I can confirm that the process runs correctly when triggered from npm

Brendonovich commented 1 year ago

This is a known issue and should be fixed by #276

JulianRuiseco commented 1 year ago

Thank you!