-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] twilioError.ts:7 Uncaught TypeError: Object prototype may only be an Object or null: undefined #76
Labels
Comments
rationalthinker1
changed the title
[BUG]
[BUG] twilioError.ts:7 Uncaught TypeError: Object prototype may only be an Object or null: undefined
Feb 9, 2022
Thanks @rationalthinker1 , we'll look into supporting Vite. I've filed an internal ticket for this. |
@rationalthinker1 are you still seeing this error? |
No, I had to dynamically import the twilio script files. protected importLibrary = async () => {
await import('@twilio/voice-sdk/dist/twilio.min.js');
Device = window['Twilio'].Device;
Call = window['Twilio'].Call;
}; |
Thanks @rationalthinker1 for providing your workaround. I submitted an internal ticket to properly address this. |
This should be fixed now. Please see details here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or sensitive account information (API keys, credentials, etc.) when reporting this issue.
Software versions:
I am using Vite as a bundler. Out of the hundreds of packages that my application is using, only Twilio has this error.
twilioError.ts:7 Uncaught TypeError: Object prototype may only be an Object or null: undefined
I went through many hoops to get twilio working with Vite in the first place.
The text was updated successfully, but these errors were encountered: