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

Error: cannot find module 'node:http' #11

Open
sunkast opened this issue Apr 26, 2023 · 3 comments
Open

Error: cannot find module 'node:http' #11

sunkast opened this issue Apr 26, 2023 · 3 comments

Comments

@sunkast
Copy link
Contributor

sunkast commented Apr 26, 2023

I updated to the latest version tonight and now it's broken again.

[26.04.2023 01:45.12.463] [ERROR] Error: Cannot find module 'node:http'
Require stack:
- /opt/magic_mirror/modules/MMM-plex-recently-added/node_helper.js
- /opt/magic_mirror/js/app.js
- /opt/magic_mirror/serveronly/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._resolveFilename (/opt/magic_mirror/node_modules/module-alias/index.js:49:29)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/opt/magic_mirror/modules/MMM-plex-recently-added/node_helper.js:1:14)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/opt/magic_mirror/modules/MMM-plex-recently-added/node_helper.js',
    '/opt/magic_mirror/js/app.js',
    '/opt/magic_mirror/serveronly/index.js'
  ]
}

Running this docker image: bastilimbach/docker-magicmirror:latest

@Gyran
Copy link
Owner

Gyran commented Apr 26, 2023

Fixed again!

@Gyran
Copy link
Owner

Gyran commented Apr 26, 2023

bastilimbach/docker-magicmirror:latest uses an really old version of node (12 which reached end of life April 2022) and seems to be unmaintained.
But i've done some changes to make sure that this module will stay compatible with node 12 since it still got a lot of downloads.
Seems like magic mirror recommends karsten13/magicmirror now instead.
https://docs.magicmirror.builders/getting-started/installation.html#docker-image

@zzarbi
Copy link
Collaborator

zzarbi commented Apr 26, 2023

FYI @Gyran this https://khassel.gitlab.io/magicmirror/installation/ this like a newer version for MagicMirror docker, it support node 18 and 19.

Edited
Jut realized you said the same thing ahah

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

3 participants