I am using the WebIDE at https://www.espruino.com/ide/, but I keep getting the following error in my browser console:
index.js:93682 Uncaught ReferenceError: require is not defined
at index.js:93682:23
at cb (index.js:93090:35)
at Array.getGitHub (index.js:102904:7)
at cb (index.js:93088:15)
at Object.callProcessor (index.js:93093:5)
at getURL (index.js:93638:14)
at Object.getJSONURL (index.js:93747:5)
at loadJSON (index.js:102094:25)
at Array.<anonymous> (index.js:102086:9)
at cb (index.js:93088:15)
This also manifests so that when I try to connect to my PuckJS, it never finishes connecting and gets stuck on this screen that I attached.
It seems to me that some part of the WebIDE code is trying to use require but cannot find that function since its not a native browser JS function, and crashes.
Is this a known issue? It seems to me that this is also blocking me from loading extra modules like ble_hid_keyboard to my PuckJS. Do you know how I can mitigate this?
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.
Hello
I am using the WebIDE at https://www.espruino.com/ide/, but I keep getting the following error in my browser console:
This also manifests so that when I try to connect to my PuckJS, it never finishes connecting and gets stuck on this screen that I attached.
It seems to me that some part of the WebIDE code is trying to use
require
but cannot find that function since its not a native browser JS function, and crashes.Is this a known issue? It seems to me that this is also blocking me from loading extra modules like
ble_hid_keyboard
to my PuckJS. Do you know how I can mitigate this?Thanks in advance!
1 Attachment