hi,
i have a question regarding the require mechanism and the project handling in the webIDE.
i created a simple wrapper for the 'HC-SR04' which abstracts the low level handling.
this wrapper of course uses the 'HC-SR04' module from espruino.com
i want to reuse this class on several places so i put it into the 'modules' folder of the configured project directory in the webIDE.
when i 'require(...)' this file i get the error message that the modul can not be found.
it seems to me that it is not possible for a module (from the modules directory) to require another module regardless if it's a local one or from the web?
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.
hi,
i have a question regarding the require mechanism and the project handling in the webIDE.
i created a simple wrapper for the 'HC-SR04' which abstracts the low level handling.
this wrapper of course uses the 'HC-SR04' module from espruino.com
i want to reuse this class on several places so i put it into the 'modules' folder of the configured project directory in the webIDE.
when i 'require(...)' this file i get the error message that the modul can not be found.
it seems to me that it is not possible for a module (from the modules directory) to require another module regardless if it's a local one or from the web?