Problem with nested modules #1617
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 2 comments
-
Posted at 2022-05-31 by JumJum Save the module in Storage. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Posted at 2022-05-31 by Ethan_IRON oh... ok thank you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2022-05-31 by Ethan_IRON
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
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions