Coder Social home page Coder Social logo

Comments (6)

brian-dlee avatar brian-dlee commented on April 20, 2024 3

I found the issue for anyone else who happens upon this. invariant is used to check for SESSION_SECRET and I did not have a SESSION_SECRET secret defined in Fly. Lo and behold, the README outlines this step just fine.

from indie-stack.

netdesignr avatar netdesignr commented on April 20, 2024

@mrkurt thanks for escalating this here. Still no success in overcoming this issue

from indie-stack.

netdesignr avatar netdesignr commented on April 20, 2024

@mrkurt ok, now that's weird. All fixed after I've tried rebuilding a couple of times. You might want to close this issue for now.

from indie-stack.

brian-dlee avatar brian-dlee commented on April 20, 2024

I'm getting this same exact issue with a freshly created app from Indie stack when deploying to Fly.io. npm start works fine locally. If any has any suggestions I'm open. I imagine it's not Fly related. I've tried changing NPM versions between node:16 node:16-bullseye-slim and node:14 and tried upgrading NPM to the latest with in the Docker container since I figured it could be a minor package version resolution issue difference between my Mac and the linux container. The node:14 container had an issue with the npx prisma ... command in start.sh, so it's inconclusive whether or not that would have worked.

edit

I do get the same error when starting up the docker container and running npm start

root@dc0ccd1ec14b:/app# npm start

> start
> remix-serve build


/app/node_modules/tiny-invariant/dist/tiny-invariant.cjs.js:10
        throw new Error(prefix);
              ^
Error: Invariant failed
    at invariant (/app/node_modules/tiny-invariant/dist/tiny-invariant.cjs.js:10:15)
    at Object.<anonymous> (/app/build/index.js:146:35)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.createApp (/app/node_modules/@remix-run/serve/index.js:39:12)
    at Object.<anonymous> (/app/node_modules/@remix-run/serve/cli.js:52:17)
root@dc0ccd1ec14b:/app#

from indie-stack.

alifhaider avatar alifhaider commented on April 20, 2024

What to do if I found this issue?

from indie-stack.

machour avatar machour commented on April 20, 2024

@alifhaider you fill in a new issue with all details possible.

from indie-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.