Open Sid-ah opened 10 months ago
I'm not sure if this is a Remix issue. Is this a fresh Blues Stack app? The invariant is coming from a getClient
method, and the Blues Stack doesn't have one of those so it seems like it's coming from your own code? The Blues Stack does create a prisma client with new PrismaClient
so it's possible Prisma has an internal getClient
function or something.
If you can provide a minimal reproduction repo of the issue, we can help dig in further.
@brophdawg11, here are the repro steps:
npm install
npm run setup
npm run build
npm start
so far everything works as expected.docker build -t sidah/demo:1.0
docker run sidah/demo:1.0 -e DATABASE_URL=http://localhost:5432/
or docker run sidah/demo:1.0 -e DATABASE_URL=postgres://username:password@myproject.postgres.database.azure.com/postgres
Here is the error message:
SyntaxError: Unexpected token ':'
at new Script (node:vm:94:7)
at createScript (node:vm:251:10)
at Object.runInThisContext (node:vm:299:10)
at node:internal/process/execution:82:21
at [eval]-wrapper:6:24
at runScript (node:internal/process/execution:81:62)
at evalScript (node:internal/process/execution:103:10)
at node:internal/main/eval_string:29:3
This seems like a issue with the docker setup in the Blues Stack, I'm going to transfer this issue over there since the Remix build
/start
is working correctly.
What version of Remix are you using?
1.19.3
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
I first ran:
docker build -t sidah/demo:1.0
docker run sidah/demo:1.0
Expected Behavior
Expected the app to run successfully.
Actual Behavior
The app fails to run: