You are reading a single comment by @seriousStuff and its replies. Click here to read the full conversation.
  • 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?

About