v0.13.7
errors and warnings / names

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

× failswowlua
import sleepFor from "wowlua:timer"sleepFor(1)
✓ compileswowlua
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
codemessage
E1015Module not found

Offline

terminal
$ wowlua explain E1012
E1012 (error): Module has no export with this name

source on GitHub ↗