Problem with nested modules

Posted on
  • Hi everybody, i'm creating a module for my tiny webserver framework and i have a problem with a module if is not required in the main javascript code.
    Let me explain better:
    in the main code i require module A that requires module C
    in the main code i require module B that requires module C
    i never need to require module C in the main code but if i don't do it the code dies when it require the module b because it says that module c does not exists...
    I attach the code (i only kept the code usefull to understand the problem)
    Is this an Espruino bug? can it be fixed? is it just a stupid idea? :D
    Thanks in advance


    1 Attachment

  • Save the module in Storage.
    See more here http://www.espruino.com/Modules#from-sto­rage

  • oh... ok thank you

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Problem with nested modules

Posted by Avatar for Ethan_IRON @Ethan_IRON

Actions