PICO doesn't load the module #5773
Replies: 1 comment
-
Posted at 2017-06-12 by ClearMemory041063 Found the problem. Posted at 2017-06-12 by @gfwilliams Thanks for updating it with the answer - any idea why it worked on the 2nd or 3rd send? Posted at 2017-06-12 by ClearMemory041063 This example always fails with "module.js". Posted at 2017-06-12 by @allObjects Tried in console the following... according to Modules reference:
Both - non-JSON and JSON - ways fail... I suspect that the new feature to load modules as a function meddles with the previous workings... may be the issue is with both, upload AND pull ( @gfwilliams, could it be that the feature of saving modules as functions is doing things differently? *** BUT*** *** BUT*** *** BUT*** *** BUT*** *** BUT*** Doing it in a module:
...and in the code as follows:
...I get this output on upload:
The last line is only that I do not have to enter
@ClearMemory041063, I do not know what it fighting you... @gfwilliams, made another try in the console with (modules source code and not just source code):
And it works, works, works,... nothing is broken... (so: @gfwilliams, never mind my comments from before...) Posted at 2017-06-13 by @gfwilliams Yes, the issue is that If you typed To work around it, you can surround the JSON in brackets: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-06-12 by ClearMemory041063
The error that shows up on occasion in other projects but here it's persistant
ERROR: SD card must be setup with E.connectSDCard first
The error occasionally occurs when other modules are required, but usually clears on a 2nd or third send to Espruino.
The code is an example from @allObjects
The credsXYZ.js module in the sandbox
The output
Beta Was this translation helpful? Give feedback.
All reactions