Replies: 1 comment
-
I encounter the same error. Is there any way to resolve it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #79~20.04.1-Ubuntu SMP Thu Apr 20 22:12:07 UTC 2023 Binaries: Node: 20.2.0 npm: 9.6.6 Yarn: 1.22.19 pnpm: N/A Relevant packages: next: 13.4.5-canary.0 eslint-config-next: 13.2.3 react: 18.2.0 react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/xkungfu/ChatGPT-Next-Web
To Reproduce
app/cache/redis.ts:
app/api/auth.ts:
import client from '../cache/redis'
and add below to some function:
const message = client.get(
xxxxxx);
package.json:
"redis": "4.6.6"
Here is my project.
I changed three file to add redis to another next.js project. package.json auth.ts redis.tx
https://github.com/xkungfu/ChatGPT-Next-Web
Describe the Bug
when add redis or ioredis.
npm run build or yarn build fail.
Expected Behavior
Please see the error info. It is very very confusing. which file and what code caused the error?
Can you let next.js give more infomations?
Please help and tell me what is the right way to add redis to next.js?
thanks!
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions