0

I'm trying to develop a webchat with twilio. I'm using the initial github project https://github.com/twilio-professional-services/flex-selectable-chat-messages and customize it. When I'm running in dev mode (npm start) it's works fine... But after building it ( npn run-script build) and run index.thml in localhost it's doesn't work and I've got this error message in console...

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

I have tryed to run it from a server (in a WordPress folder) and I have the same error.

I don't understand this error... Is there someone who has solved this error and how can I fix it?

0 Answers0