Search code examples
typescripttwiliotwilio-conversations

Package "@twilio-conversations" does not compile in typescript


I am trying to run the package @twilio-conversations in react-typescript.

It fails to compile with following error:

./src/components/communications/conversations/ConversationsSetup.tsx
Module not found: Can't resolve '@twilio-conversations' in ...

Declaring the module in definition file: @types/alltypes.d.ts -> [declare module "@twilio-conversations"] does not help.

With JavaScript it works fine.

Can anyone let me know, if they are facing similar issue?


Solution

  • Switching to package with name: @twilio/conversations started working.