v0.13.7
errors and warnings / manifest

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

× failswowlua.jsonjson
{    "package": {        "name": "playground",        "version": "0.1.0",        "wowlua": "^0.13",    },    "flavors": {        "camelot": {}    }}
✓ compileswowlua.jsonjson
{    "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
codemessage
E4002Manifest does not match the schema (unknown key, wrong type)

Offline

terminal
$ wowlua explain E4001
E4001 (error): Manifest is not valid JSON

source on GitHub ↗