innogames / ax3

AS3 to Haxe converter
MIT License
43 stars 10 forks source link

No such module xxx.xxx.xxx #12

Open GiantSnail opened 2 years ago

GiantSnail commented 2 years ago

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>
Shaunmax commented 1 year ago

same here! any luck?

GiantSnail commented 1 year ago

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!