import自己写的npm库,有些成功有些失败,原因不明
demo地址: xuanyangyang/ts-lib-demo: ts依赖demo (github.com)
失败截图:
代码部分截图:
使用的库github地址: xuanyangyang/ts-demo: ts-es6demo (github.com)
写的库用nodejs运行正常
-
Creator 版本:3.2
-
目标平台: edge 91.0.864.70
-
重现方式:啦取代码,跑起来就行 xuanyangyang/ts-lib-demo: ts依赖demo (github.com)
-
首个报错:
debug.ts:102 TypeError: (intermediate value)(intermediate value)(intermediate value) is not a constructor
at GameRoot.start (GameRoot.ts:26)
at component-scheduler.ts:266
at OneOffInvoker._invoke (component-scheduler.ts:233)
at OneOffInvoker.invoke (component-scheduler.ts:148)
at ComponentScheduler.startPhase (component-scheduler.ts:454)
at Director.mainLoop (director.ts:898)
at _callback (game.ts:695)
期望正常import