GithubHelp home page GithubHelp logo

Comments (10)

machour avatar machour commented on April 19, 2024 1

Just fyi, to use yarn, create the project using yarn create remix instead of npx .... The installer will use yarn for subsequent commands.

from grunge-stack.

mcansh avatar mcansh commented on April 19, 2024 1

when you opt out of npm install you should see the following which instructs you to run npx remix init image

from grunge-stack.

mirsahib avatar mirsahib commented on April 19, 2024 1

I fixed it by duplicating the .env.example file and renaming it to .env boom

from grunge-stack.

MiguelNiblock avatar MiguelNiblock commented on April 19, 2024

this doesn't happen when you say "Yes" to "run npm install?"

from grunge-stack.

machour avatar machour commented on April 19, 2024

This should be moved to https://github.com/remix-run/grunge-stack/issues

from grunge-stack.

iampueroo avatar iampueroo commented on April 19, 2024

I'm also having this issue, but for the indie-stack.

I said "no" to "run npm install?" because I wanted to use yarn. I ran yarn setup and then yarn dev and this occurred.

Edit: For the record, I was able to get everything running by setting both the DATABASE_URL env variable (required in this stack for sqlite) and the SESSION_SECRET env variables (to random string). After that, I got remix running!

from grunge-stack.

machour avatar machour commented on April 19, 2024

@MiguelNiblock did you follow the instruction closely when opting out of installing dependencies?

from grunge-stack.

JonathanRys avatar JonathanRys commented on April 19, 2024

This happened to me after I ran:

npx arc env --add --env staging ARC_APP_SECRET $(openssl rand -hex 32)
npx arc env --add --env staging SESSION_SECRET $(openssl rand -hex 32)
npx arc env --add --env production ARC_APP_SECRET $(openssl rand -hex 32)
npx arc env --add --env production SESSION_SECRET $(openssl rand -hex 32)

To fix it I ran:

npx arc env --add --env testing ARC_APP_SECRET $(openssl rand -hex 32)
npx arc env --add --env testing SESSION_SECRET $(openssl rand -hex 32)

from grunge-stack.

mcansh avatar mcansh commented on April 19, 2024

@JonathanRys you ran the first set of arc env commands and then npm run dev and it failed? then ran the second set and it worked?

mine is working fine without setting the "testing" ones

from grunge-stack.

technoY2K avatar technoY2K commented on April 19, 2024

Edit: For the record, I was able to get everything running by setting both the DATABASE_URL env variable (required in this stack for sqlite) and the SESSION_SECRET env variables (to random string). After that, I got remix running!

Wanted to add to this. I did the exact same thing and it worked for me. Just as a note, if you look in the session.server.ts file on line 17, you will see that there is an invariant that checks whether a SESSION_SECRET is set or not. If you don't have an .env with that value set, which process.env is doing, the invariant trips and throws the error. This is actually a reason why I prefer these stacks to be just bare bones without any application code.

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