I am entering it on the right side.
Actually, I can see the text of the error inside MQTT.min.js, line 9 col 201:
"...t,a);a.connect();return a}});"
Obviously it finds the module, tries to load it and because of syntax errors it fails to load it. Then in my code it reports that the module cannot be found:
var mqtt = require("MQTT").create("192.168.1.10");
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I am entering it on the right side.
Actually, I can see the text of the error inside MQTT.min.js, line 9 col 201:
"...t,a);a.connect();return a}});"
Obviously it finds the module, tries to load it and because of syntax errors it fails to load it. Then in my code it reports that the module cannot be found:
var mqtt = require("MQTT").create("192.168.1.10");
Please try it if you can.