Click the Storage icon (4 discs, basically in the middle of the screen)
Click Upload Files
Upload your file using the file chooser
Uploading your way will work but as you noted it's messy!
In your case, you can ignore the "exports" is not defined error. It's because after upload the IDE is trying to run your module as if it's a normal app - but it's a module.
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 think you've misunderstood - there is an actual button for uploads!
Storage
icon (4 discs, basically in the middle of the screen)Upload Files
Uploading your way will work but as you noted it's messy!
In your case, you can ignore the
"exports" is not defined
error. It's because after upload the IDE is trying to run your module as if it's a normal app - but it's a module.