Comments (10)
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.
when you opt out of npm install
you should see the following which instructs you to run npx remix init
from grunge-stack.
I fixed it by duplicating the .env.example
file and renaming it to .env
boom
from grunge-stack.
this doesn't happen when you say "Yes" to "run npm install?"
from grunge-stack.
This should be moved to https://github.com/remix-run/grunge-stack/issues
from grunge-stack.
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.
@MiguelNiblock did you follow the instruction closely when opting out of installing dependencies?
from grunge-stack.
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.
@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.
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)
- LiveReload does not work HOT 1
- Starting project is throwing Error [ERR_PACKAGE_PATH_NOT_EXPORTED] error HOT 2
- "Lambda handler not found" error due to change in `@architect/architect` v10.6.0 HOT 4
- Setup fails HOT 2
- 🚀 Fresh Stack Deployment Not Working As Expected HOT 2
- Loading notes locally takes 900ms in grunge stack compared to 30ms in indie HOT 1
- remix defer is malfunctioning by awaiting and blocking responses HOT 4
- Fresh unaltered template will not deploy with Github Actions HOT 2
- Recommend adding @aws section to .arc file HOT 3
- Cypress smoke test fails with newly initialized project HOT 1
- @prisma/client did not initialize yet HOT 1
- Fresh deployment leads to Internal Server Error HOT 1
- Error occurs after fresh installation HOT 1
- notes example app is slow
- Fresh Grunge-Stack results in many browser console errors HOT 5
- Type error on initial validate of the stack HOT 9
- Warning: server timed out after hitting its 5s timeout! HOT 6
- Deploy Error HOT 3
- Try creating new Remix project using grunge stack but the cli freeze after asking me want to run verify build/tests/etc script HOT 8
- Replace `run-p` with `npm-run-all -p-` because the former doesn't kill all process when pressing CTRL+C in windows HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunge-stack.