Error when evaluating SSR module fresh:server_entry: Cannot read properties of undefined (reading 'transformReply')
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 49/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- deno, redis, typescript
- Ambito
- backend
Direzione di ricerca
Start with the reported main.ts import of Redis 5.8.2 and the Fresh Vite SSR evaluation path shown in the stack trace. Reproduce the error in Fresh 2.1.1 on Ubuntu with the Redis NPM package, then investigate why client creation fails during SSR. Done means the package can be imported and its client created without the transformReply error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Fresh version: 2.1.1
OS: Ubuntu 24.04.3 LTS
Trying to use the NPM library Redis (https://www.npmjs.com/package/redis)
10:31:30 AM [vite] (ssr) Error when evaluating SSR module fresh:server_entry: Cannot read properties of undefined (reading 'transformReply')
at getTransformReply (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/@[email protected]/node_modules/@redis/client/dist/lib/commander.js:10:1902)
at #createModuleCommand (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/@[email protected]/node_modules/@redis/client/dist/lib/client/index.js:24:2367)
at attachConfig (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/@[email protected]/node_modules/@redis/client/dist/lib/commander.js:10:1103)
at RedisClient.factory (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/@[email protected]/node_modules/@redis/client/dist/lib/client/index.js:24:3542)
at create (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/@[email protected]/node_modules/@redis/client/dist/lib/client/index.js:25:79)
at createClient (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]/node_modules/redis/dist/index.js:29:1340)
at eval (/home/juls/projects/deno-projects/fresh-project-v2.1.1/main.ts:6:58)
at async ESModulesEvaluator.runInlinedModule (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async eval (fresh:server_entry:8:31)
at async ESModulesEvaluator.runInlinedModule (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async SSRCompatModuleRunner.import (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:991:10)
at async instantiateModule (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18600:10)
at async https://jsr.io/@fresh/plugin-vite/1.0.4/src/plugins/dev_server.ts:72:23
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'transformReply')
at getTransformReply (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/@[email protected]/node_modules/@redis/client/dist/lib/commander.js, :10:1902)
at #createModuleCommand (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/@[email protected]/node_modules/@redis/client/dist/lib/client/index.js, :24:2367)
at attachConfig (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/@[email protected]/node_modules/@redis/client/dist/lib/commander.js, :10:1103)
at RedisClient.factory (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/@[email protected]/node_modules/@redis/client/dist/lib/client/index.js, :24:3542)
at create (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/@[email protected]/node_modules/@redis/client/dist/lib/client/index.js, :25:79)
at createClient (/home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]/node_modules/redis/dist/index.js, :29:1340)
at eval (/home/juls/projects/deno-projects/fresh-project-v2.1.1/main.ts, :6:58)
at async ESModulesEvaluator.runInlinedModule (file:///home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest (file:///home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest (file:///home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest (file:///home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async eval (fresh:server_entry, :8:31)
at async ESModulesEvaluator.runInlinedModule (file:///home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest (file:///home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest (file:///home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest (file:///home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async SSRCompatModuleRunner.import (file:///home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:991:10)
at async instantiateModule (file:///home/juls/projects/deno-projects/fresh-project-v2.1.1/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18600:10)
at async https://jsr.io/@fresh/plugin-vite/1.0.4/src/plugins/dev_server.ts:72:23
- Lingua principale
- TypeScript
- Stelle
- 13.8k
- Fork
- 757
- Merge medio
- 3m
- PR unite (30g)
- 2
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di freshframework/fresh
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
freshframework/fresh#3920 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
freshframework/fresh#3833 ·
-
feat
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
freshframework/fresh#3803 · 1 commento ·
-
Did you stop maintaining it?Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
freshframework/fresh#3918 · 1 commento · 4 reazioni ·
-
Tab title doesn't update to <Head> <title> when navigating to a page with another <title>Forse già presa @1AbdullahButt l’ha presa 8 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
freshframework/fresh#3916 ·
Tutte le issue di freshframework/fresh
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
SocialGouv/egapro#5212 ·
I maintainer di solito rispondono entro 2 giorni
-
area:filesystem bug need-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Captions panel does not offer to show an existing transcriptForse già presa @thedavidweng l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
CapSoftware/Cap#4276 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
nightly-labs/openbot#10242 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno