Skip to content
Discussion options

You must be logged in to vote

I think the issue is how the twilio-chat library defines what the package entry points are. Next is grabbing the browser entry but that is not working. lib seems to work though.

twilio-chat/package.json

{
  "name": "twilio-chat",
  "version": "4.0.0",
  "description": "Twilio Chat service client library",
  "main": "lib/index.js",
  "browser": "browser/index.js",
  "types": "./lib/client.d.ts",
...

If you change the import to import { Client as ChatClient } from 'twilio-chat/lib'; it works.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cdedreuille
Comment options

Answer selected by cdedreuille
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants