lkaric / nestjs-twilio

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

Property 'forRoot' does not exist on type 'TwilioModule' #42

Closed jmopaso closed 1 year ago

jmopaso commented 1 year ago

Bug Report

Describe the Bug

Hi! I am trying to integrate the library in the current version v3.1.0 but on registering the module exactly as recommended in the getting started documentation i receive the following error Property 'forRootAsync' does not exist on type 'typeof TwilioModule'

How to Reproduce

Just follow the library documentation with the register module example:

Screen Shot 2022-10-14 at 13 44 49

My Environment

lkaric commented 1 year ago

What version of Nestjs are you using?

jmopaso commented 1 year ago

I'm using this nest dependencies

"@nestjs/common": "^8.0.0",
"@nestjs/config": "^2.2.0",
"@nestjs/core": "^8.0.0",
"@nestjs/cli": "^8.0.0",
lkaric commented 1 year ago

Alright, the package utilises a configurable module builder introduced with v9 of Nestjs.

Hotfix solutions (I recommend the 1st one):

  1. Upgrade Nestjs dependencies.
  2. Use a lesser major version of the package.

I'll try and decouple the versions when I get some free time,

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.