Comments (2)
Current workaround: using a custom out path works.
Example
generator client {
provider = "prisma-client-js"
output = "../src/generated/client"
}
from prisma.
One important thing to note, is that our current test has NPM_CONFIG_PRODUCTION=false
& NODE_MODULES_CACHE=false
set on Heroku as env vars.
After investigating, it looks like the Pruning devDependencies
step of the heroku/nodejs
buildpack changed, and is not skipped anymore.
A deployment using heroku/nodejs
buildpack version 244
, where runtime is working:
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs.git#v244 -a name-of-app
....
remote: -----> Pruning devDependencies
remote: Skipping because NPM_CONFIG_PRODUCTION is 'false'
remote:
remote: -----> Compressing...
remote: Done: 120.1M
A deployment using heroku/nodejs
buildpack version 245
, where runtime is failing with the Prisma Client error mentioned earlier:
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs.git#v245 -a name-of-app
remote: -----> Pruning devDependencies
remote:
remote: devDependencies:
remote: - @types/node 16.18.97
remote: - heroku 8.11.5
remote: - prisma 5.14.0-dev.74
remote: - ts-node 10.9.2
remote: -----> Compressing...
remote: Done: 89.7M
The changelog https://github.com/heroku/heroku-buildpack-nodejs/blob/HEAD/CHANGELOG.md
Shows that v245
added support for pnpm
-> heroku/heroku-buildpack-nodejs#1224
Looking at https://github.com/heroku/heroku-buildpack-nodejs/blob/a409b633d7925c3002ba4568bc833093cbd75237/lib/dependencies.sh#L338
It looks like the behavior is not the same for pnpm as for yarn and npm and so this behavior is expected at the moment as the env vars are not used in that newer code path.
from prisma.
Related Issues (20)
- Timescaledb foreign key reference does not play nicely with introspection
- bug(cli): `prisma format` does not format files other than `schema.prisma` when using `prismaSchemaFolder` preview feature
- Using "where" in Select error with Prisma Client v5.19.0 HOT 8
- Tell prisma to force ipv4 even if dns return both HOT 2
- Expose DB native type binding to Prisma DMMF object
- PrismaClientRustPanicError: Expected parent IDs to be set when ordering by parent ID HOT 2
- Deno preview feature client generation throws an error HOT 1
- Method `$on()` of new `PrismaClient` instance returns `void`
- Transaction API error: Transaction with { txnNumber: 2 } has been aborted. HOT 1
- A Node.js API is used (process.stdout at line: 68) which is not supported in the Edge Runtime. HOT 2
- Accelerate not accepting `?pgbouncer=true` in connection string
- Timed out fetching a new connection from the connection pool. HOT 4
- TypedSQL generates invalid typescript file when enums contain hyphens
- Custom generators not run with npx context on Windows HOT 4
- TypedSql not considering COALESCE in query output
- Prisma Studio UI issue
- Add type safety to the `PrismaClientKnownRequestError` code through const and type
- prisma.$metrics gauge field `prisma_pool_connections_open` is not consistent
- Option to generate types that require a where clause to enforce tenant isolation HOT 1
- Strange issue: relationLoadStrategy: 'join' errors out when used with 'redis' npm package: PANIC: called `Option::unwrap()` on a `None` value HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prisma.