Skip to content

Failed to load javascript file #388

@XTrandi

Description

@XTrandi

OS

Raspbian GNU/Linux 11 (bullseye)

Node.js Version

22.22.1

Version verification

  • I verified the issue also occurs on a current Node.js version (e.g., latest LTS or 24.x), not only on an outdated one.

MagicMirror² Version

2.34.0

MagicMirror² version verification

  • I verified the issue also occurs on the latest MagicMirror² release (not only on an outdated one).

Remote Control Version

4.8.0+

Minimal reproduction

  • I enabled only MMM-Remote-Control (other modules disabled) and the issue still occurs.

Description

When opening remote control on a browser, following message appears:

Wenn du diese Nachricht lesen kannst, konnte die javascript Datei nicht korrekt geladen werden. Bitte folge dem Link, und sehe nach, ob dies ein bekanntes Problem mit deinem Browser ist: Github-Issue-Seite

Expected behavior

Functionally working module.

Current behavior

Browser displays some errors. No visible errors on the raspberry side that are module related though.

GET http://spielzeugbrot.fritz.box/modules/MMM-Remote-Control/node_modules/marked/lib/marked.esm.js
NS_ERROR_CORRUPTED_CONTENT

Laden fehlgeschlagen für das Modul mit der Quelle "http://spielzeugbrot.fritz.box/modules/MMM-Remote-Control/node_modules/marked/lib/marked.esm.js". [remote-socket.mjs](http://spielzeugbrot.fritz.box/apps/MagicMirror/modules/MMM-Remote-Control/remote-socket.mjs)

Possible solution

Current workaround is using version v4.7.0. Anything after that will result in the error displayed above. I'm still on node v22, since for Raspberry Pi 2 there are no precompiled binaries for latest node LTS-version. Therefore giving me some headache, but I might try that if I have time.

Steps to reproduce

see above

Screenshots (optional)

Image
Image

Log

[2026-03-14 16:31:09.984] [DEBUG] [MMM-Remote-Control] Queuing update check for MMM-BackgroundSlideshow, pending: 1
[2026-03-14 16:31:10.114] [DEBUG] [MMM-Remote-Control] Queuing update check for MMM-DVB, pending: 2
[2026-03-14 16:31:10.186] [DEBUG] [MMM-Remote-Control] Queuing update check for MMM-Hue-Controller-2, pending: 3
[2026-03-14 16:31:10.249] [DEBUG] [lib] Module MMM-IndoorClimate-brothausen is not managed with git, skipping update check
[2026-03-14 16:31:10.302] [DEBUG] [MMM-Remote-Control] Queuing update check for MMM-KaraFun, pending: 4
[2026-03-14 16:31:11.007] [DEBUG] [MMM-Remote-Control] Finished update check for MMM-KaraFun, pending: 3, active: 3, queued: 0
[2026-03-14 16:31:11.033] [DEBUG] [MMM-Remote-Control] Queuing update check for MMM-Parcel, pending: 4
[2026-03-14 16:31:11.407] [DEBUG] [MMM-Remote-Control] Queuing update check for MMM-Remote-Control, pending: 5
[2026-03-14 16:31:11.670] [DEBUG] [MMM-Remote-Control] Queuing update check for mmm-hue-lights, pending: 6
[2026-03-14 16:31:13.150] [DEBUG] [MMM-Remote-Control] Finished update check for MMM-BackgroundSlideshow, pending: 5, active: 5, queued: 0
[2026-03-14 16:31:13.377] [DEBUG] [MMM-Remote-Control] Finished update check for MMM-DVB, pending: 4, active: 4, queued: 0
[2026-03-14 16:31:13.521] [DEBUG] [MMM-Remote-Control] Finished update check for MMM-Hue-Controller-2, pending: 3, active: 3, queued: 0
[2026-03-14 16:31:13.863] [DEBUG] [MMM-Remote-Control] Finished update check for MMM-Parcel, pending: 2, active: 2, queued: 0
[2026-03-14 16:31:14.349] [DEBUG] [MMM-Remote-Control] Finished update check for mmm-hue-lights, pending: 1, active: 1, queued: 0
[2026-03-14 16:31:14.598] [DEBUG] [MMM-Remote-Control] Finished update check for MMM-Remote-Control, pending: 0, active: 0, queued: 0

config.js

let config = {
	address: "0.0.0.0",	// Address to listen on, can be:
							// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
							// - another specific IPv4/6 to listen on a specific interface
							// - "0.0.0.0", "::" to listen on any interface
							// Default, when address config is left out or empty, is "localhost"
	port: 8080,
//	basePath: "/",
	basePath: "/apps/MagicMirror/", 	// The URL path where MagicMirror² is hosted. If you are using a Reverse proxy
					// you must set the sub path here. basePath must end with a /
	ipWhitelist: [], 	// Set [] to allow all IP addresses
															// or add a specific IPv4 of 192.168.1.5 :
															// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
															// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
															// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],

	useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
	httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
	httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true

	language: "de",
	locale: "de-DE",
	logLevel: ["INFO", "LOG", "WARN", "ERROR", "DEBUG"], // Add "DEBUG" for even more logging
	timeFormat: 24,
	units: "metric",
	// serverOnly:  true/false/"local" ,
	// local for armv6l processors, default
	// starts serveronly and then starts chrome browser
	// false, default for all NON-armv6l devices
	// true, force serveronly mode, because you want to.. no UI on this device

	modules: [
		{
			module: 'MMM-Remote-Control',
		},
		
	]
};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}

Additional info

I'm running magicmirror behind a reverse proxy, although I don't think this applies here.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions