function startDevice(){
require( fs.item('Generalscript').module() );
var Generalscript = require("Generalscript").Generalscript;
var gs = new Generalscript();
gs.getVer();
}
Uncaught Error: Both arguments to addCached must be strings
at line 1 col 41
Modules.addCached(this.k,this.toString()),this.k;
^
in function "module" called from line 1 col 42
require( fs.item('Generalscript').module() );
^
in function "startDevice" called from line 23 col 24
startDevice();
^
in function called from system
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.
I have litle bug i don`t understand ...