robhogan / react-native-paho-mqtt

react-native-paho-mqtt
91 stars 32 forks source link

Error in ReactJS #15

Open rakesh-eltropy opened 6 years ago

rakesh-eltropy commented 6 years ago

I am getting following error when I try to use react-native-paho-mqtt in ReactJS app.

./node_modules/react-native-paho-mqtt/src/Client.js
Module parse failed: Unexpected token (27:5)
You may need an appropriate loader to handle this file type.
| // ------------------------------------------------------------------------
| 
| type ConstructorOptions = {
|   uri: string,
|   clientId: string,

Can it be used in ReactJS app?

ricardojosegomezulmke commented 6 years ago

I have the same issue. Is there a solution?