errors and warnings / stdlib / E8330
E8330 error
Unknown tooltip kind
- area
- stdlib (x8xxx)
- fails the build
- yes
The tooltip kind given to tooltip.hook or @onTooltip is not a name of
Enum.TooltipDataType in any of your flavors. Kinds are written like the
enum's names: "Item", "Spell", "Unit", "Mount", "Currency", …
Correct the name; a kind that exists, but not on every flavor you build for,
is E8300 instead.
Example
import * as tooltip from "wowlua:tooltip" tooltip.hook("Items", function(tip, data) print(data.id)end)import * as tooltip from "wowlua:tooltip" tooltip.hook("Item", function(tip, data) print(data.id)end)The compiler reports it like this:
error[E8330]: unknown tooltip kind `Items` ┌─ src/main.wowlua:3:14 │ 3 │ tooltip.hook("Items", function(tip, data) │ ^^^^^^^ not an `Enum.TooltipDataType` name │ = help: for example "Item", "Spell", "Unit", "Mount" or "Currency"
Related codes
| code | message |
|---|---|
| E8300 | Standard-library function unavailable on a targeted flavor (no fallback) |
Offline
$ wowlua explain E8330 E8330 (error): Unknown tooltip kind