6tail/lunar-typescript

使用vite构建后出现TypeError: undefined is not a non-null object

Closed this issue · 3 comments

我猜测是commonJS的兼容性问题。
具体报错在Object.defineProperty(LunarTime, "__esModule", { value: true });处,提示LunarTimeundefined
目前我使用lunar-javascript构建则不会出现此问题。

我也出现了这样的问题,请问你有解决的方案了吗

我的解决方案是直接从lunar-javascript调取函数,然后从lunar-typescript源码获取函数的interface。

6tail commented

v1.2.23导出了LunarTime,之前遗漏了。