errors and warnings / names / E1041
E1041 error
Value import of another addon's module (an addon-dependencies addon): only import type crosses addons
- area
- names (x1xxx)
- fails the build
- yes
- in plain Lua files
- reported as W1041
A module imports a value from a module of another addon of the workspace
(one listed in addon-dependencies). Modules are private to the addon they
are compiled into, so another addon's module isn't part of this one. Use
import type for its types, and its @global API for its values.
It needs a workspace with two addons, so it has no example here; wowlua check reports it in the workspace.
Related codes
| code | message |
|---|---|
| E1015 | Module not found |
Offline
$ wowlua explain E1041 E1041 (error): Value import of another addon's module (an addon-dependencies addon): only import type crosses addons