lkaric / nestjs-twilio

Injectable Twilio client for Nestjs.
https://www.npmjs.com/package/nestjs-twilio
MIT License
43 stars 11 forks source link

Configurable module import dependency resolution error #60

Closed harshmodi3812 closed 1 year ago

harshmodi3812 commented 1 year ago

Bug Report

Describe the Bug

[Nest] 21260 - 20/07/2023, 9:57:29 pm ERROR [ExceptionHandler] Nest can't resolve dependencies of the TwilioService (?). Please make sure that the argument CONFIGURABLE_MODULE_OPTIONS[fabf635f2b63dc62a1ece] at index [0] is available in the TwilioModule context.

Potential solutions:

Error: Nest can't resolve dependencies of the TwilioService (?). Please make sure that the argument CONFIGURABLE_MODULE_OPTIONS[fabf635f2b63dc62a1ece] at index [0] is available in the TwilioModule context.

Potential solutions:

How to Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Add TwilioModule.forRootAsync... as defined in app.module.ts
  2. Add TwilioService to the constructor of a service
  3. Import TwilioModule in the *.module.ts for that service

Expected Behavior

No dependency injection error

Error

Error resulted by the potential bug.

Your Environment

Error reproducing steps

Please explain how did your error ocurr, you can also leave gists, repos or any kind of codebase.

Additional Information

Any other information about the problem here.

lkaric commented 1 year ago

What version of Nestjs are you using?

harshmodi3812 commented 1 year ago

Nestjs version 10.1.7

On Tue, Jul 25, 2023 at 10:10 PM Lazar Karić @.***> wrote:

What version of Nestjs are you using?

— Reply to this email directly, view it on GitHub https://github.com/lkaric/nestjs-twilio/issues/60#issuecomment-1650177957, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARBYN7QBXNL2A4NWXAT6BO3XR7ZH5ANCNFSM6AAAAAA2RV3EYQ . You are receiving this because you authored the thread.Message ID: @.***>

lkaric commented 1 year ago

Can you provide an implementation (just redact secrets and/or any sensitive business logi), I can't get the issue to reproduce

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.