Is it possible to use local modules with the CLI? The web IDE works great, but when I used the CLI, I get module not found error for my local modules.
It should be fine - just stick anything you want in a modules folder, and the CLI will look in that for any modules.
Does that mean I need to start the CLI in a path that has "modules" folder? e.g. \projects is where .js file is, and modules is in \projects\modules?
I believe so, yes. Thinking about it, it's possible that the module loader doesn't take the path of the file into account - only the current directory.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem