Giter VIP home page Giter VIP logo

Comments (3)

brophdawg11 avatar brophdawg11 commented on April 28, 2024

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.

from blues-stack.

Sid-ah avatar Sid-ah commented on April 28, 2024

@brophdawg11, here are the repro steps:

  1. npx create-remix@latest --template remix-run/blues-stack
  2. cd myproject
  3. npm install
  4. npm run setup
  5. npm run build
  6. npm start so far everything works as expected.
  7. docker build -t sidah/demo:1.0
  8. I get an error when I run the following commands:docker run sidah/demo:1.0 -e DATABASE_URL=http://localhost:5432/ or docker run sidah/demo:1.0 -e DATABASE_URL=postgres://username:[email protected]/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

from blues-stack.

brophdawg11 avatar brophdawg11 commented on April 28, 2024

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.

from blues-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.