We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JStack doesn't seem usable with OpenFL projects atm, because it doesn't support constructors / new() as entry points.
new()
> openfl create project JStackTest > cd JstackTest
Add this to project.xml:
project.xml
<haxelib name="jstack" /> <haxedef name="JSTACK_MAIN=Main.new" />
Running openfl test html5 results in this error:
openfl test html5
Source/Main.hx:12: characters 2-10 : Cannot call super constructor outside class constructor Source/Main.hx:10: lines 10-16 : Missing super constructor call
Versions used:
The text was updated successfully, but these errors were encountered:
Till this is fixed you can use ordinary entry point as a workaround. AFAIR OpenFL supports it.
class MyClass extends Sprite { static public function main() Lib.addChild(new MyClass()); }
Sorry, something went wrong.
Yep, it does, probably should have mentioned that. 👍
No branches or pull requests
JStack doesn't seem usable with OpenFL projects atm, because it doesn't support constructors /
new()
as entry points.Add this to
project.xml
:Running
openfl test html5
results in this error:Versions used:
The text was updated successfully, but these errors were encountered: