Troubleshooting Guide - Fuzss/forgeconfigapiport GitHub Wiki

Solving ModResolutionException regarding Night Config

Older versions of FCAP sometimes ran into issues regarding the way the utilized Night Config library was shipped with the final mod. In a development environment upon running the game this could lead to you being greeted with the following error message:

net.fabricmc.loader.impl.FormattedException: net.fabricmc.loader.impl.discovery.ModResolutionException: Mod resolution encountered an incompatible mod set!
A potential solution has been determined:
	 - Install com_electronwill_night-config_core, any version.
	 - Install com_electronwill_night-config_toml, any version.

To resolve this issue, manually add Dependency Overrides to your run configuration. Do that by creating a new file at run/config/fabric_loader_dependencies.json, in which you put the following contents:

{
  "version": 1,
  "overrides": {
    "forgeconfigapiport": {
      "-depends": {
        "com_electronwill_night-config_core": "",
        "com_electronwill_night-config_toml": ""
      }
    }
  }
}

Also don't forget to manually add this file to your VCS, since the whole run directory is usually ignored by default. A dedicated common publication does not exist for these versions.