-
Notifications
You must be signed in to change notification settings - Fork 149
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
Does not handle ES modules #302
Comments
I think that MMM-RAIN-MAP was mistakenly labelled as an ES module. I corrected that with my last PR. @dathbe can you please check this out again? 🙂 |
I'm getting a different error now:
I haven't had time to parse it to see if I can find a solution. |
I don't fully understand it yet, but at least commenting out or deleting the line |
Sorry, I saw this when you posted it, but didn't have time at the moment to look into it...and then promptly forgot. I'll test this when I have time. |
I think that probably worked. I'm getting some other errors now, but I think they may be unrelated errors with another module. I'll test this for a bit to see if I see any adverse effects. |
So far so good. I have not noticed any adverse effects, and my error logs seem to be clear now (at least on this module). So I suggest creating a PR. |
OS
Raspbian 12
NodeJS Version
18.19.0
MagicMirror² Version
2.27.0
Remote Control Version
2.3.8
Did you try using just Remote Control alone with MM?
Description
Remote-Control will not load ES Modules, and instead throws the following errors:
Expected behavior
Either the module should use
import()
as suggested, or, if the module cannot handle ES Modules, it should check whether the module is an ES Module and not attempt to import it.Current behavior
Log error as shown above.
Possible solution
?
Steps to reproduce
Log
config.js
Additional info
No response
The text was updated successfully, but these errors were encountered: