1. Home
  2. Docs
  3. LEd documentation
  4. Haxe API
  5. Troubleshooting

Troubleshooting

Missing classes or methods

Updating the API will probably fix this issue:

haxelib update led-haxe-api

If you use deepnightLibs:

haxelib git deepnightLibs https://github.com/deepnight/deepnightLibs.git 

If you use Heaps game framework:

haxelib git deepnightLibs https://github.com/deepnight/deepnightLibs.git 

Type XXX is redefined from module YYY

This error means that some classes or types created from your “YYY” project have the same name as existing classes in your code, or in other LEd imported projects.

The fix is easy. Just move your YYY class to a sub-directory and add a package to it:

package sameAsTheFolder;

private typedef _Tmp = haxe.macro.MacroType<[
	led.Project.build("path/to/myProject.json")
]>;