In your IDE's settings (the one with the error), is communications -> Module extensions set to .min.js|.js? That's the default.
communications -> Module extensions
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
WEB IDE with Minification (Esprima Offline)
© Espruino, powered by microcosm.
Report a problem