I want integrate a twilio chat in my reactjs app. For that I am using "twilio-ip-messaging-react" package. I have installed it. when I run the app I am getting following error.
./~/twilio-ip-messaging-react/ip_chat_client.jsx
Module parse failed:
/home/projectName/node_modules/twilio-ip-messaging-react/ip_chat_client.jsx Unexpected token (56:8)
You may need an appropriate loader to handle this file type.
| if (this.state.messagingClient) {
| return (
| <div>
| <IPChatChannelManager
| messagingClient={this.state.messagingClient}
I have changed webpack.js also, but still getting same error.
Any one can tell me how to fix it and why raising this error?
Thank you every one.