Error: Cannot find module 'connect-redis'
See original GitHub issueI just fired up grist using redis, but when I specify REDIS_URL
then I get the following error
grist_1 | yarn run v1.22.17
grist_1 | $ NODE_PATH=_build:_build/stubs node _build/stubs/app/server/server.js
grist_1 | Welcome to Grist.
grist_1 | In quiet mode, see http://localhost:8484 to use.
grist_1 | For full logs, re-run with DEBUG=1
grist_1 | Error: Cannot find module 'connect-redis'
grist_1 | Require stack:
grist_1 | - /_build/app/server/lib/gristSessions.js
grist_1 | - /_build/app/server/lib/Authorizer.js
grist_1 | - /_build/app/gen-server/ApiServer.js
grist_1 | - /_build/app/server/lib/FlexServer.js
grist_1 | - /_build/app/server/mergedServerMain.js
grist_1 | - /_build/stubs/app/server/server.js
grist_1 | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
grist_1 | at Function.Module._load (internal/modules/cjs/loader.js:746:27)
grist_1 | at Module.require (internal/modules/cjs/loader.js:974:19)
grist_1 | at require (internal/modules/cjs/helpers.js:101:18)
grist_1 | at createSessionStoreFactory (/_build/app/server/lib/gristSessions.js:25:28)
grist_1 | at Object.initGristSessions (/_build/app/server/lib/gristSessions.js:78:33)
grist_1 | at FlexServer.addSessions (/_build/app/server/lib/FlexServer.js:569:79)
grist_1 | at Object.<anonymous> (/_build/app/server/mergedServerMain.js:83:20)
grist_1 | at Generator.next (<anonymous>)
grist_1 | at fulfilled (/_build/app/server/mergedServerMain.js:11:58) {
grist_1 | code: 'MODULE_NOT_FOUND',
grist_1 | requireStack: [
grist_1 | '/_build/app/server/lib/gristSessions.js',
grist_1 | '/_build/app/server/lib/Authorizer.js',
grist_1 | '/_build/app/gen-server/ApiServer.js',
grist_1 | '/_build/app/server/lib/FlexServer.js',
grist_1 | '/_build/app/server/mergedServerMain.js',
grist_1 | '/_build/stubs/app/server/server.js'
grist_1 | ]
grist_1 | }
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
connect-redis - npm
Start using connect-redis in your project by running `npm i ... true }) redisClient.connect().catch(console.error) // redis@v3 const ...
Read more >web_server.js: Cannot find module 'redis' · Issue #37 - GitHub
The project and repo are called "node_redis", but in npm it is called "redis". This means that you require "redis" and "npm install...
Read more >node.js - Connecting to redis in nodejs - Stack Overflow
I can't see his package.json. It seems very plausible to me that one might mistakenly write the wrong name and not notice the...
Read more >The Proper Way To Connect Redis — Node.js | by Eren Yatkin
I use Redis & MongoDb combination in NodeJs all the time but this article is not aiming to navigate you to find perfect...
Read more >How to use Redis from Node.js - Flavio Copes
Connect to the Redis instance. Once the library is installed, require it in your project using const redis = require('redis'). or import redis...
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 FreeTop 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
Top GitHub Comments
@dugite-code yes that is one way to do it. What kind of build errors are you getting?
I’m going to go ahead and bundle
connect-redis
so in future this will be simpler https://github.com/gristlabs/grist-core/pull/183 - it is a small self-contained library.Sorry about that! We need to add connect-redis@3.4.0 as an optional dependency. Does:
get you going?