errors and warnings / manifest / E4007
E4007 error
Cyclic profile or minification-level inheritance (inherits / extends)
- area
- manifest (x4xxx)
- fails the build
- yes
Profiles that inherit from each other in a circle (beta inherits staging,
which inherits beta), or minification levels that extend each other in a
circle. The effective settings are built by walking the chain down to its
base, so a chain that never reaches a built-in profile or level has no
settings.
Let one of them inherit from a built-in profile (dev or release), or
extend a built-in level.
Example
{ "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" }, "flavors": { "camelot": {} }, "profiles": { "beta": { "inherits": "staging" }, "staging": { "inherits": "beta" } }}{ "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" }, "flavors": { "camelot": {} }, "profiles": { "beta": { "inherits": "staging" }, "staging": { "inherits": "release" } }}The compiler reports it like this:
error[E4007]: profile inheritance cycle: beta → staging → beta ┌─ wowlua.json:11:19 │ 11 │ "beta": { "inherits": "staging" }, │ ^^^^^^^^^^ cycle
Related codes
| code | message |
|---|---|
| E4006 | Unknown profile, minification level, publish target or bundled addon referenced |
| E4315 | Custom profile without inherits |
Offline
$ wowlua explain E4007 E4007 (error): Cyclic profile or minification-level inheritance (inherits / extends)