errors and warnings / manifest / E4312
E4312 error
addon.load-on-demand: false together with addon-dependencies.load-with
- area
- manifest (x4xxx)
- fails the build
- yes
addon.load-on-demand is set to false, but addon-dependencies.load-with
lists addons. LoadWith makes the client load the addon together with those
addons, which only works for an addon that loads on demand, so the two
settings contradict each other.
Remove "load-on-demand": false: with load-with, the addon loads on demand
by itself. If it should load at login instead, remove load-with.
Example
{ "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" }, "addon": { "load-on-demand": false }, "addon-dependencies": { "load-with": ["Blizzard_Collections"] }, "flavors": { "camelot": {} }}{ "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" }, "addon-dependencies": { "load-with": ["Blizzard_Collections"] }, "flavors": { "camelot": {} }}The compiler reports it like this:
error[E4312]: `addon.load-on-demand` is false, but `addon-dependencies.load-with` makes the addon load on demand ┌─ wowlua.json:8:9 │ 8 │ "load-on-demand": false │ ^^^^^^^^^^^^^^^^ set to false here · 11 │ "load-with": ["Blizzard_Collections"] │ ----------- implies load on demand
Offline
$ wowlua explain E4312 E4312 (error): addon.load-on-demand: false together with addon-dependencies.load-with