In your IDE's settings (the one with the error), is communications -> Module extensions set to .min.js|.js? That's the default.
If so the minified modules should already be loaded by default. The length of 31561 you're seeing would only be happening if the IDE was loading the unminified file. Is it possible you changed that setting, or have your own local copy of the module?
Also, when you mention WEB IDE with Minification (Esprima Offline) - is this the one from espruino.com/ide, or the Chrome Web store? Up to date versions of the IDE should use a newer version of Esprima which I'm pretty sure doesn't have the TypeError issue
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.
In your IDE's settings (the one with the error), is
communications -> Module extensions
set to.min.js|.js
? That's the default.If so the minified modules should already be loaded by default. The length of 31561 you're seeing would only be happening if the IDE was loading the unminified file. Is it possible you changed that setting, or have your own local copy of the module?
Also, when you mention
WEB IDE with Minification (Esprima Offline)
- is this the one from espruino.com/ide, or the Chrome Web store? Up to date versions of the IDE should use a newer version of Esprima which I'm pretty sure doesn't have theTypeError
issue