question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot find module 'connect-redis'

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
paulfitzcommented, Apr 12, 2022

@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.

1reaction
paulfitzcommented, Feb 17, 2022

Sorry about that! We need to add connect-redis@3.4.0 as an optional dependency. Does:

yarn add connect-redis@3.4.0

get you going?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found