小程序GIT地址:https://github.com/CFETeam/we...按照文檔上的操作安裝nodejs,安裝依賴包,安裝typescripttscapp.ts編譯后提示有語法錯(cuò)誤game/room.ts(122,31):errorTS2339:Property'find'doesnotexistontype'Room[]'.game/server.ts(31,9):errorTS2322:Type'string'isnotassignabletotype'number'.https://github.com/CFETeam/we...照理說find應(yīng)該是內(nèi)置的方法才對(duì),不明白為什么報(bào)這個(gè)錯(cuò)誤。本人之前沒有學(xué)過typescript,有沒有大神知道這個(gè)原因是什么。
有人玩過微信小程序官方示例 猜拳嗎,typescript編譯總是報(bào)錯(cuò)
肥皂起泡泡
2019-05-24 11:20:50