ax3 icon indicating copy to clipboard operation
ax3 copied to clipboard

No such module xxx.xxx.xxx

Open GiantSnail opened this issue 3 years ago • 2 comments

First of all, thanks for open source! I try to convert my Project to openFL, but always get "no such module xxx.xxx" error.Does anyone have the same error?

my haxe version:

PS E:\Projects\openFL\ax3-master> haxe --version
4.2.5

config.json

{
	"src": "E:/Projects/MicroPlat/Macro/Macro/src",
	"hxout": "E:/Projects/OUT/",
	"swc": [
		"E:/Downloads/AIRSDK32_Compiler/frameworks/libs/air/airglobal.swc",
		"E:/Projects/MicroPlat/Macro/Macro/lib/airLib.swc",
		"E:/Projects/MicroPlat/Macro/Macro/lib/fzip.swc"
	]
}

error log

E:/Projects/MicroPlat/Macro/Macro/src/view/main/servierList/ServerListView.as:180: character 25: Semicolon expected after block expression
E:/Projects/MicroPlat/Macro/Macro/src/win/AirNativeWindown.as:94: character 10: Semicolon expected after block expression
E:/Projects/MicroPlat/Macro/Macro/src/com/greensock/data/TweenLiteVars.as:8: character 2: No such module com.greensock::TweenLite
Exception in thread "main" assert
        at ax3.Typer$Closure_typeImports_0.invoke(src/ax3/Typer.hx:584)
        at ax3.Typer$Closure_typeImports_0.invoke(src/ax3/Typer.hx)
        at ax3.Typer$Closure_typeImports_0.invoke(src/ax3/Typer.hx:574)
        at ax3.Typer$Closure_typeImports_0.invoke(src/ax3/Typer.hx)
        at ax3.Typer.typeImports(src/ax3/Typer.hx:606)
        at ax3.Typer$Closure_processFile_0.invoke(src/ax3/Typer.hx:57)
        at ax3.Typer.process(src/ax3/Typer.hx:19)
        at ax3.Main.main(src/ax3/Main.hx:35)
        at ax3.Main.main(src/ax3/Main.hx:1)
PS E:\Projects\openFL\ax3-master>

GiantSnail avatar Jun 28 '22 05:06 GiantSnail

same here! any luck?

Shaunmax avatar Dec 24 '22 20:12 Shaunmax

same here! any luck?

Due to irregular codes, there are many errors and warnings when converting. These errors need to be resolved first. If the project refers to the source code of many libraries, you need to build swc and configure it in config.json. Not only that, but you may need to implement some functionality yourself. i haven't succeeded yet. good luck!

GiantSnail avatar Dec 25 '22 12:12 GiantSnail