Are you testing this in an external Lua environment? CreateFrame() only exists ingame and WoW is currently using Lua 5.1. You’re better off testing addons ingame and using /reload whenever you make changes (as long as you didn’t add or remove files).
|