v0.13.7
errors and warnings / names

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.

codemessage
E1015Module not found

Offline

terminal
$ wowlua explain E1041
E1041 (error): Value import of another addon's module (an addon-dependencies addon): only import type crosses addons

source on GitHub ↗