Skip to content

Conversation

@dangherve
Copy link
Contributor

@dangherve dangherve commented Mar 9, 2025

MagicMirror allows you to define a different config file using the MM_CONFIG_FILE env variable. If you do this, MMM-Remote-Control won't be able to find the config file and will output this error message:

[ERROR] MMM-Remote-Control WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'config/config2.js'

This will fix the issue.

@KristjanESPERANTO KristjanESPERANTO changed the base branch from master to develop March 9, 2025 09:03
@KristjanESPERANTO KristjanESPERANTO changed the title [Bug fixes]Solve issue when not using standard config file [Bug fix] Solve issue when not using standard config file Mar 9, 2025
@KristjanESPERANTO KristjanESPERANTO merged commit b27fbe3 into Jopyth:develop Mar 9, 2025
1 check passed
@KristjanESPERANTO
Copy link
Collaborator

@dangherve Thanks for the PR! 🚀 I added a description, merged it into the develop branch and will prepare a new release.

@dangherve dangherve deleted the fixNotStandardConfig branch March 12, 2025 16:59
KristjanESPERANTO added a commit to KristjanESPERANTO/MMM-Remote-Control that referenced this pull request Nov 10, 2025
Fixes Jopyth#328

- Replace hardcoded "config/config.js" in remote.html with %%CONFIG_PATH%% placeholder
- Extend fillTemplates() to inject actual config path from global.configuration_file
- Aligns with fix from Jopyth#320 which solved the same issue in node_helper.js
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

Successfully merging this pull request may close these issues.

2 participants