errors and warnings / manifest / E4003
E4003 error
Invalid package name or version
- area
- manifest (x4xxx)
- fails the build
- yes
package.name or package.version is not valid. A package name is 2 to 64
characters of lowercase letters, digits and - (my-addon); the version is a
full SemVer 2.0 version with three numbers (1.0.0, 2.1.0-beta.1).
The package name is the ID used for dependencies, not what players see. The
AddOn's folder and TOC name come from addon.name, which defaults to the
PascalCase form of the package name (my-addon becomes MyAddon) and may use
capitals.
Example
{ "package": { "name": "Playground", "version": "0.1", "wowlua": "^0.13" }, "flavors": { "camelot": {} }}{ "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" }, "flavors": { "camelot": {} }}The compiler reports it like this:
error[E4003]: invalid package name `Playground` ┌─ wowlua.json:3:9 │ 3 │ "name": "Playground", │ ^^^^^^ invalid name │ = help: use 2–64 lowercase letters, digits and `-`
Offline
$ wowlua explain E4003 E4003 (error): Invalid package name or version