我刚开始使用 Haxe/Flambe,但我似乎在编译为 HTML 时遇到了问题。据我所知,这是一个内部问题。它编译成Flash就好了。这是我的控制台输出
C:\Users\UserName\Dropbox\Projects\Project\Game>flambe build --debug html
Building: build/web
haxe -main game.Main -lib flambe -cp src -dce full -debug --no-opt --no-inline -D html -D js-es5 -D js-flatten --macro flambe.platform.ManifestBuilder.use("build/web/assets") -D source-map-content -js
build/web/targets/main-html.js
C:\HaxeToolkit\haxe\lib\flambe/4,1,0/flambe/platform/html/HtmlPlatform.hx:76: characters 8-41 : js.html.DOMElement should be js.html.Element
C:\HaxeToolkit\haxe\lib\flambe/4,1,0/flambe/platform/html/CanvasTextureRoot.hx:44: characters 28-32 : Array<Int> should be haxe.io.BytesData
C:\HaxeToolkit\haxe\lib\flambe/4,1,0/flambe/platform/html/CanvasTextureRoot.hx:44: characters 28-32 : Array<Int> should be js.html.ArrayBuffer
C:\HaxeToolkit\haxe\lib\flambe/4,1,0/flambe/platform/html/CanvasTextureRoot.hx:44: characters 28-32 : For function argument 'b'
C:\HaxeToolkit\haxe\lib\flambe/4,1,0/flambe/platform/html/CanvasTextureRoot.hx:39: lines 39-45 : Missing return haxe.io.Bytes
C:\HaxeToolkit\haxe\lib\flambe/4,1,0/flambe/platform/html/HtmlAssetPackLoader.hx:364: characters 16-38 : String should be js.html.XMLHttpRequestResponseType
C:\HaxeToolkit\haxe\lib\flambe/4,1,0/flambe/platform/html/HtmlAssetPackLoader.hx:367: characters 12-37 : String should be js.html.XMLHttpRequestResponseType
C:\HaxeToolkit\haxe\lib\flambe/4,1,0/flambe/platform/html/HtmlAssetPackLoader.hx:368: characters 16-42 : String should be js.html.XMLHttpRequestResponseType
C:\HaxeToolkit\haxe\lib\flambe/4,1,0/flambe/platform/html/HtmlAssetPackLoader.hx:205: characters 12-43 : String should be js.html.XMLHttpRequestResponseType
C:\HaxeToolkit\haxe\lib\flambe/4,1,0/flambe/platform/html/HtmlExternal.hx:37: characters 42-48 : js.html.Window should be haxe.Function
C:\HaxeToolkit\haxe\lib\flambe/4,1,0/flambe/platform/html/HtmlExternal.hx:37: characters 42-48 : For function argument 'func'
C:\HaxeToolkit\haxe\lib\flambe/4,1,0/flambe/platform/html/HtmlExternal.hx:25: lines 25-38 : Missing return Dynamic
我正在使用 Haxe 3.2.0 和 Flambe 4.1.0。我一直在上网寻找解决方案,但似乎找不到。任何帮助将非常感激。谢谢。