Export/linux64/neko/haxe/ApplicationMain.hx:184: characters 7-42 : Invalid package : <empty> should be warlordsclash.game

Hi,
I have problem with openfl , I made application divided into :

- warlordsclash: 
    - game (openfl) - all files starts with package warlordsclash.game;
    - core (haxe classes and all logic)  - all files starts with package warlordsclash.core;
    - tests  - all files starts with package warlordsclash.tests;

I added my library like this:

 haxelib dev warlordsclash /home/..../path/to/parent/of/warlordsclash/folder

and all test working just fine, problem starts in openfl.
when I try to import my classes form core and compile (doesn’t matter the target) I get:

╰─$ openfl test neko                                                            
Export/linux64/neko/haxe/ApplicationMain.hx:184: characters 7-42 : Invalid package : <empty> should be warlordsclash.game

and line 184 in ApplicationMain.hx looks like this:

@:keep class DocumentClass extends Main {}

my openfl code is just imports and empty main class that extend Sprite.

whats going on? please help ;]

ps. I also addeded

<haxelib name="warlordsclash" />

to project.xml

I just changed in all openfl files :

 package  warlordsclash.game;

to

package ;

and now it’s working…but why?

Haxe requires your source folders to match the package name, so if you use package warlordsclash.game, then you will need a source directory with folders “warlordsclash/game/” with the files

Perhaps you need <app main="warlordsclash.game.Main" /> or whatever the full reference is to your document class?