errors and warnings / manifest / E4001
E4001 error
Manifest is not valid JSON
- area
- manifest (x4xxx)
- fails the build
- yes
wowlua.json is not valid JSON. The manifest is strict JSON: no comments, no
trailing commas, keys and strings in double quotes. Nothing else in the
package is checked until the manifest parses.
The message gives the position of the first problem. Remove the trailing comma
or comment, or quote the key. An editor that knows the manifest's $schema
shows these mistakes as you type.
Example
{ "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13", }, "flavors": { "camelot": {} }}{ "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" }, "flavors": { "camelot": {} }}The compiler reports it like this:
error[E4001]: invalid JSON: trailing comma ┌─ wowlua.json:6:5 │ 6 │ }, │ ^ here │ = note: wowlua.json is strict JSON: no comments and no trailing commas
Related codes
| code | message |
|---|---|
| E4002 | Manifest does not match the schema (unknown key, wrong type) |
Offline
$ wowlua explain E4001 E4001 (error): Manifest is not valid JSON