loopbackio / loopbackio/loopback-next
Not able to run @loopback/socketio example
オープン
まだ誰も着手していません。
bug
- 主要言語
- TypeScript
- スター
- 5.1k
- フォーク
- 1.1k
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 27
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
examples/socketio から開始し、socketio オプションを使って lb4 example で失敗を再現します。example の tsconfig.build.json と、CLI のダウンロード/展開のエントリポイントを調査します。完了の条件は、報告された ENOENT または CORS の失敗なしに example をエンドツーエンドでダウンロードして実行でき、REST と Socket.IO を同時に利用できることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- node.js, typescript
- 領域
- api, backend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100