bcgov / quickstart-openshift

QuickStart template targeted for OpenShift.
https://quickstart-openshift-test-frontend.apps.silver.devops.gov.bc.ca/
Apache License 2.0
28 stars 4 forks source link

feat(ci): node 22 #1982

Closed DerekRoberts closed 3 weeks ago

DerekRoberts commented 1 month ago

Closes #1966


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

mishraomp commented 3 weeks ago

now after deployment we are getting

PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime "debian-openssl-3.0.x".

This happened because Prisma Client was generated for "debian-openssl-1.1.x", but the actual deployment required "debian-openssl-3.0.x".
Add "debian-openssl-3.0.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it:

generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native", "debian-openssl-3.0.x"]
}

The following locations have been searched:
  /app/node_modules/.prisma/client
  /app/node_modules/@prisma/client
  /tmp/prisma-engines
    at wa (/app/node_modules/@prisma/client/runtime/library.js:64:805)
    at async Object.loadLibrary (/app/node_modules/@prisma/client/runtime/library.js:111:10060)
    at async wt.loadEngine (/app/node_modules/@prisma/client/runtime/library.js:112:448)
    at async wt.instantiateLibrary (/app/node_modules/@prisma/client/runtime/library.js:111:12829) {
  clientVersion: '5.15.0',
  errorCode: undefined
}

Node.js v22.3.0

will look into it @DerekRoberts

DerekRoberts commented 3 weeks ago

@mishraomp All good. Thanks for staying on top of this. :)

mishraomp commented 3 weeks ago

all set @DerekRoberts :)