egret-target-wxgame icon indicating copy to clipboard operation
egret-target-wxgame copied to clipboard

could not find name "wx"

Open luozhonghai opened this issue 6 years ago • 1 comments

RT. 您安装的最新引擎版本为 5.2.8 当前项目使用版本为 5.1.7 您可以执行 egret upgrade 命令升级项目 您正在使用白鹭编译器 5.1.7 版本 正在编译项目... Error D:/Egret/egret-target-wxgame-1.1.7/demos/openDataContext/openDataContext/src/Main.ts (53,31): Cannot find name 'wx'. Error D:/Egret/egret-target-wxgame-1.1.7/demos/openDataContext/openDataContext/src/Main.ts (165,13): Cannot find name 'wx'. 项目共计编译耗时:4.286秒 编译项目失败

luozhonghai avatar Aug 30 '18 10:08 luozhonghai

将下面这个文件放到libs下面重新编译一下就好了 https://github.com/wonderful60/egret-target-wxgame/blob/master/demos/openDataContext/openDataContext/libs/modules/wechat/wx_mini_game.d.ts

ghost avatar Feb 28 '19 10:02 ghost