errors and warnings / manifest / E4317
E4317 error
addon section in a non-addon package
- area
- manifest (x4xxx)
- fails the build
- yes
The manifest has an addon section, but the package is not an addon
(package.kind is library, lua-library or types). Only an addon gets a
TOC and an AddOn folder; a library is built into the addons that depend on
it, and they bring their own addon settings.
Remove the addon section, or set kind to addon if the package is meant
to be one.
Example
{ "package": { "name": "playground", "version": "0.1.0", "kind": "library", "wowlua": "^0.13" }, "addon": { "title": "Playground" }, "flavors": { "camelot": {} }}{ "package": { "name": "playground", "version": "0.1.0", "kind": "library", "wowlua": "^0.13" }, "flavors": { "camelot": {} }}The compiler reports it like this:
error[E4317]: the `addon` section is only valid for packages of kind `addon` ┌─ wowlua.json:8:5 │ 8 │ "addon": { │ ^^^^^^^ not allowed here
Offline
$ wowlua explain E4317 E4317 (error): addon section in a non-addon package