Nest.js についての質問です。
コードはこちらにあります。
現在、appModule が最上位にあり、その下に apiModule, lineModule 、apiController, apiService、 lineController, lineService があります。
実現したいことは、lineService のメソッドを、 apiController で使用したいので、Injectできるようにしたいのですが次のようなエラーが出てしまいます。
[Nest] 3744 - 2022/04/17 23:37:24 ERROR [ExceptionHandler] Nest can't resolve dependencies of the LineService (?). Please make sure that the argum ent Client at index [0] is available in the LineModule context. Potential solutions: - If Client is a provider, is it part of the current LineModule? - If Client is exported from a separate @Module, is that module imported within LineModule? @Module({ imports: [ /* the Module containing Client */ ] }) Error: Nest can't resolve dependencies of the LineService (?). Please make sure that the argument Client at index [0] is available in the LineModule context.
どなたかお力添えをお願いいたします。
あなたの回答
tips
プレビュー