Ahh - yes, it's because ble_hid_keyboard is a module, and you're not including that module.
Maybe try using https://www.espruino.com/ide/ to write the code - I just pushed some changes I'd had locally that make this much easer.
Remove the require("Storage").write(".boot0", around your code
Click the down-arrow under the upload button
Choose the Storage option (if you don't see it, make sure to reload the page as you may still have the old IDE version)
Choose .boot0 under that menu (you'll only see it on your device because you already created it - otherwise you'll have to click the button to choose your own filename and type it in)
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.
Ahh - yes, it's because
ble_hid_keyboard
is a module, and you're not including that module.Maybe try using https://www.espruino.com/ide/ to write the code - I just pushed some changes I'd had locally that make this much easer.
require("Storage").write(".boot0",
around your codeStorage
option (if you don't see it, make sure to reload the page as you may still have the old IDE version).boot0
under that menu (you'll only see it on your device because you already created it - otherwise you'll have to click the button to choose your own filename and type it in)