Error: Invariant failed -> In Remix project
See original GitHub issueHi,
I’m facing this error during Github Action CI, can someone please advice?
> start:mocks
> binode --require ./mocks -- @remix-run/serve:remix-serve build
🔶 Mock server running
/home/runner/work/project-name/tproject-namenode_modules/tiny-invariant/dist/tiny-invariant.cjs.js:10
throw new Error(prefix);
^
Error: Invariant failed
at invariant (/home/runner/work/project-name/project-name/node_modules/tiny-invariant/dist/tiny-invariant.cjs.js:10:15)
at Object.<anonymous> (/home/runner/work/project-name/project-name/build/index.js:124:35)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/runner/work/project-name/project-name/node_modules/@remix-run/serve/dist/cli.js:48:13)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
http://localhost:8811 timed out on retry 91 of 3, elapsed 90246ms, limit 90000ms
Error: connect ECONNREFUSED 127.0.0.1:8811
Any thoughts on the above?
Thanks a lot!
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Error: Invariant failed: SESSION_SECRET must be set #71
Just fyi, to use yarn, create the project using yarn create remix instead of npx ... . The installer will use yarn for...
Read more >Another "Can't Deploy a New Remix App" post - Fly.io
Ayup - I just greped for fly secrets in the codebase and stumbled across it. We might want to drop a note on...
Read more >Invariant failed: You should not use <Route> outside a <Router>
Show activity on this post. In my case, this error was caused due to mixing up usage of things (withRouter, MemoryRouter) from react-router...
Read more >Blog Tutorial (short) - Remix
Initialize a new Remix project. We'll call ours "blog-tutorial" but you can call it something else if you'd like. npx create-remix@latest --template ...
Read more >Create a New Remix Project Using the remix-create CLI
Error: Cannot find module './seed.ts' Require stack: /Users/arti/learn/onewheel-blog/prisma/imaginaryUncacheableRequireResolveScript at Function ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @hawkup 😃
In my case, it is not connected with fly deployment because I have already deployed the app.
But I took a closer look at deploy.yml prepared by Indie stack. I rewrote the part which was preparing
.env
for cypress job, and it works.IMO ticket to close. It was strictly connected with the GitHub Actions configuration in the Remix template.
I would suggest to close this issue as it is just an invariant failing in the remix-run/indie-stack project.