Skip to content

MMM-BackgroundSlideshow #3897

@Chaitanya-Lad

Description

@Chaitanya-Lad

Environment

MagicMirror² version:

Image

Node version: v24.8.0
npm version: v24.8.0
Platform: Raspberry Pi 4 Model B Rev 1.5 CasaOS

magicmirror | SyntaxError: Unexpected token '.'
magicmirror | at wrapSafe (internal/modules/cjs/loader.js:915:16)
magicmirror | at Module._compile (internal/modules/cjs/loader.js:963:27)
magicmirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
magicmirror | at Module.load (internal/modules/cjs/loader.js:863:32)
magicmirror | at Function.Module._load (internal/modules/cjs/loader.js:708:14)
magicmirror | at Module.require (internal/modules/cjs/loader.js:887:19)
magicmirror | at require (internal/modules/cjs/helpers.js:74:18)
magicmirror | at loadModule (/opt/magic_mirror/js/app.js:126:19)
magicmirror | at loadNextModule (/opt/magic_mirror/js/app.js:164:5)
magicmirror | at /opt/magic_mirror/js/app.js:166:6
magicmirror | [23.09.2025 20:00.03.132] [LOG] Loading module helpers ...
magicmirror | [23.09.2025 20:00.03.133] [LOG] No helper found for module: clock.
magicmirror | [23.09.2025 20:00.03.134] [LOG] Initializing new module helper ...
magicmirror | [23.09.2025 20:00.03.135] [LOG] Module helper loaded: currentweather
magicmirror | [23.09.2025 20:00.03.136] [LOG] Initializing new module helper ...
magicmirror | [23.09.2025 20:00.03.136] [LOG] Module helper loaded: weatherforecast
magicmirror | [23.09.2025 20:00.03.140] [ERROR] Whoops! There was an uncaught exception...
magicmirror | [23.09.2025 20:00.03.144] [ERROR] /opt/magic_mirror/modules/MMM-BackgroundSlideshow/node_helper.js:317
magicmirror | }, self.config?.slideshowSpeed || 10000);
magicmirror | ^
magicmirror |
magicmirror | SyntaxError: Unexpected token '.'
magicmirror | at wrapSafe (internal/modules/cjs/loader.js:915:16)
magicmirror | at Module._compile (internal/modules/cjs/loader.js:963:27)
magicmirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
magicmirror | at Module.load (internal/modules/cjs/loader.js:863:32)
magicmirror | at Function.Module._load (internal/modules/cjs/loader.js:708:14)
magicmirror | at Module.require (internal/modules/cjs/loader.js:887:19)
magicmirror | at require (internal/modules/cjs/helpers.js:74:18)
magicmirror | at loadModule (/opt/magic_mirror/js/app.js:126:19)
magicmirror | at loadNextModule (/opt/magic_mirror/js/app.js:164:5)
magicmirror | at /opt/magic_mirror/js/app.js:166:6
magicmirror | [23.09.2025 20:00.03.145] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
magicmirror | [23.09.2025 20:00.03.145] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

Which start option are you using?

node --run start

Are you using PM2?

No

Module

None

Have you tried disabling other modules?

  • Yes
  • No

Have you searched if someone else has already reported the issue on the forum or in the issues?

  • Yes

What did you do?

/* Magic Mirror Config Sample
*

*/

var config = {
address: "0.0.0.0", // Address to listen on
port: 8080,
ipWhitelist: [], // [] to allow all IPs

language: "en",
timeFormat: 24,
units: "metric",

modules: [
{
module: "clock",
position: "top_left"
},
{
module: "currentweather",
position: "top_right",
config: {
location: "Sūrat",
locationID: "1255364", // ID from OpenWeatherMap city list
appid: "4b6d1dd13e23569f52c9facc44dbc75b"
}
},
{
module: "weatherforecast",
position: "top_right",
header: "Weather Forecast",
config: {
location: "Sūrat",
locationID: "1255364",
appid: "4b6d1dd13e23569f52c9facc44dbc75b"
}
},
{
module: "MMM-BackgroundSlideshow",
position: "fullscreen_below", // appears behind everything
config: {
imagePaths: ["/opt/magic_mirror/modules/MMM-BackgroundSlideshow/exampleImages"],
slideshowSpeed: 10000, // 10 seconds per image
transitionSpeed: 1000, // 1 second fade
shuffle: true,
recursiveSubDirectories: true
}
}
]
};

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

What did you expect to happen?

slideshow

What actually happened?

application broke

Additional comments

No response

Participation

  • I am willing to submit a pull request for this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions