loopbackio / loopbackio/loopback-next
Not able to run @loopback/socketio example
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 5.1k
- Fork
- 1.1k
- Merge medio
- 2g 21h
- PR unite (30g)
- 27
Descrizione
Describe the bug
I am not able to run socket io example end to end
- I tried via cli example it though error which is attached in logs
- manually created same example but it throws cors error
- example doesn't have rest & socketio combined example
Can you please give me running example of loopback 4 socket io which contains rest api as well?
Logs
lb4 example
? What example would you like to clone? socketio
✖ An error occured while running loopback4:example#downloadAndExtract
(node:3894) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, rename '/Users/saurabhmanchanda/Documents/Work/Personal/loopback4-example-socketio/tsconfig.build.json' -> '/Users/saurabhmanchanda/Documents/Work/Personal/loopback4-example-socketio/tsconfig.json'
(Use `node --trace-warnings ...` to show where the warning was created)
(node:3894) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:3894) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Additional information
No response
Reproduction
https://github.com/loopbackio/loopback-next/tree/master/examples/socketio
Guida per i contributori
Apri la guida per i contributori
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.
Direzione di ricerca
Inizia in examples/socketio e riproduci il problema con lb4 example usando l'opzione socketio. Esamina il tsconfig.build.json dell'esempio e l'entry point di download/estrazione della CLI; il lavoro è completato quando l'esempio può essere scaricato ed eseguito end-to-end senza l'errore ENOENT o CORS segnalato, con REST e Socket.IO disponibili insieme.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- node.js, typescript
- Ambito
- api, backend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100