errors and warnings / names / E1012
E1012 error
Module has no export with this name
- area
- names (x1xxx)
- fails the build
- yes
- in plain Lua files
- reported as W1012
An import names something the module doesn't export: a typo, a name that
was renamed or removed, or a function the module defines without export.
Check the module's export declarations and fix the name, or export it
there.
Example
import sleepFor from "wowlua:timer"sleepFor(1)import after from "wowlua:timer"after(1, function() print("later") end)The compiler reports it like this:
error[E1012]: module has no export named `sleepFor` ┌─ src/main.wowlua:1:8 │ 1 │ import sleepFor from "wowlua:timer" │ ^^^^^^^^ not exported
Related codes
| code | message |
|---|---|
| E1015 | Module not found |
Offline
$ wowlua explain E1012 E1012 (error): Module has no export with this name