twilio-professional-services / example-customer-end-chat

A Flex Webchat UI example with a button for customers to end their chat
13 stars 5 forks source link

NPM Run Build #5

Open MarcusAsurion opened 3 years ago

MarcusAsurion commented 3 years ago

I am able to use the application in a serverless environment, however, when I use a production build (npm run build) it does not work. Use inspect shows "failed to load resource" errors. How do I solve this?

cschreger commented 3 years ago

Similar issue - when using a production build I receive the following error:

Uncaught TypeError: Super expression must either be null or a function
    at twilio-flex-webchat.prod.js:2467
    at twilio-flex-webchat.prod.js:2466
    at Object.<anonymous> (twilio-flex-webchat.prod.js:2465)
    at n (twilio-flex-webchat.prod.js:152)
    at Object.<anonymous> (twilio-flex-webchat.prod.js:2302)
    at n (twilio-flex-webchat.prod.js:152)
    at Object.<anonymous> (twilio-flex-webchat.prod.js:5467)
    at n (twilio-flex-webchat.prod.js:152)
    at Module.<anonymous> (twilio-flex-webchat.prod.js:5598)
    at n (twilio-flex-webchat.prod.js:152)