Hi.
My board is a HYSTM32_24_ve. When I try to load a my own module saved in SD, Espruino Web IDE tells "Module xxx not found". What can be a reason of this situation?
When I look the SD by "require('fs').readdir()", the Espruino shows me its correct contents.
When I look the directory 'node_modules' by "require('fs').readdir('node_modules')", it shows me the file 'xxx.js', that I need.
But when I try type a "require('xxxx')", it returns me "Module xxx not found".
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.
Hi.
My board is a HYSTM32_24_ve. When I try to load a my own module saved in SD, Espruino Web IDE tells "Module xxx not found". What can be a reason of this situation?
When I look the SD by "require('fs').readdir()", the Espruino shows me its correct contents.
When I look the directory 'node_modules' by "require('fs').readdir('node_modules')", it shows me the file 'xxx.js', that I need.
But when I try type a "require('xxxx')", it returns me "Module xxx not found".