DEV Community

Discussion on: Got a "TypeError: 'get peerIdentity'" in EmberJS and not in Svelte. Do you know why?

 
cescquintero profile image
Francisco Quintero 🇨🇴 • Edited

In the components where the importing was failing I did:

-const Video = Twilio.Video;
+import * as Video from 'twilio-video/dist/twilio-video';

And then kept using the library as normal.

Thread Thread
 
abhilashlr profile image
abhilashlr

And which method are you trying to use? Is it possible to share a github gist?

Thread Thread
 
cescquintero profile image
Francisco Quintero 🇨🇴
Thread Thread
 
abhilashlr profile image
abhilashlr

I tried this, and without the util imported in the component, things seem to work for me. I'm trying this in Ember 3.17+ app. Maybe something in the util is causing this issue?

Thread Thread
 
cescquintero profile image
Francisco Quintero 🇨🇴

Interesting 🤔. Gonna give it a try.

Thread Thread
 
abhilashlr profile image
abhilashlr

Sure, let me know how it goes :)