robhogan / react-native-paho-mqtt

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

./node_modules/react-native-paho-mqtt/src/Client.js - Module parse failed: Unexpected token (27:5) #40

Open KennPunt opened 4 years ago

KennPunt commented 4 years ago

I get the following error when I try to import and compile:

./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,

What am I doing wrong?