Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local module not found error #222

Closed
wolandec opened this issue Feb 19, 2020 · 4 comments
Closed

Local module not found error #222

wolandec opened this issue Feb 19, 2020 · 4 comments

Comments

@wolandec
Copy link

I selected a project folder and the modules folder was created there by IDE. I copied my scada.js folder into it.

Require module in my js file.
const ScadaJs = require("scada.js");

And I've got a problem, that IDE search this module online instead of local folder.
ERROR: getURL("https://www.espruino.com/modules/scada.js.js") error : Not Found WARNING: [notify_warn] Module scada.js not found

@MaBecker
Copy link

Hi,

try it this way: const ScadaJs = require("scada");

@wolandec
Copy link
Author

Hi,

try it this way: const ScadaJs = require("scada");

The folder name is scada.js

@MaBecker
Copy link

MaBecker commented Feb 19, 2020

Espruino can only include files.

Edit: check the module page http://www.espruino.com/Modules

@wolandec
Copy link
Author

Espruino can only include files.

Got it, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants