I'm trying to load the GPS module onto my puck.js using the loadModule function at in the "Internet-enabled Espruino" section at https://www.espruino.com/Modules (I'm not using the Espruino Web IDE, but am trying to get things working from a web application I'm running locally on XAMPP).
1) I call the code from my web application, and it seems to load the GPS module, but I get an error "Uncaught ReferenceError: exports is not defined at GPS.js:41"
2) Is that the correct process? Or should I be writing the code to the puck instead of including it in a file in my web application?
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'm trying to load the GPS module onto my puck.js using the loadModule function at in the "Internet-enabled Espruino" section at https://www.espruino.com/Modules (I'm not using the Espruino Web IDE, but am trying to get things working from a web application I'm running locally on XAMPP).
1) I call the code from my web application, and it seems to load the GPS module, but I get an error "Uncaught ReferenceError: exports is not defined at GPS.js:41"
2) Is that the correct process? Or should I be writing the code to the puck instead of including it in a file in my web application?
Many thanks for any suggestions.