I am creating an ionic app and everytime I try to use the library `twilio-chat` on my project via npm install I always got an error on `.d.ts` files

Import in my provider :

```
import { Client } from "twilio-chat";

```

Errors:
[![enter image description here](https://i.stack.imgur.com/wv0o0.png)](https://i.stack.imgur.com/wv0o0.png)

it seems the `.d.ts` files doesnt know where to look for the dependency modules they need. is it related on typings of typescript? I'm quite new to typescript.

but when I try to use the `cdn` it works perfectly fine.

I'm using

* `ionic: "3.18.0"`
* `typescript: "2.2.1"`
* `twlio-chat: "1.2.1"`

update: I were able to fix the SyncClient and Emc Client by mapping on were exactly `.d.ts` files. the only problem was there are twilio dependencies that doesn't have `.d.ts` files like `twilio-transport`, `twilsock` and `twilio-notifications`.

tsconfig.json contains:

```
{
  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "declaration": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": [
      "dom",
      "es2015"
    ],
    "module": "es2015",
    "moduleResolution": "node",
    "sourceMap": true,
    "target": "es5",
    "baseUrl": ".",
    "paths": {
      "twilio-sync": ["node_modules/twilio-sync/lib"],
      "twilio-ems-client": ["node_modules/twilio-ems-client/lib"]
    }
  },
  "include": [
    "src/**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ],
  "compileOnSave": false,
  "atom": {
    "rewriteTsconfig": false
  }
}

```

TIA