[LayaAir 2.0]new Laya.Templet() 时,说这不是一个constructor
TypeError: Laya.Templet is not a constructor
HelloLayabox.ts:44
at new HelloLayabox (file:///D:/layaProjects/mylaya/myLaya/bin/js/bundle.js:10103:28)
at Object.47.../bin/libs/node_modules/es6-promise (file:///D:/layaProjects/mylaya/myLaya/bin/js/bundle.js:10551:1)
at o (file:///D:/layaProjects/mylaya/myLaya/bin/js/bundle.js:11:265)
at r (file:///D:/layaProjects/mylaya/myLaya/bin/js/bundle.js:11:431)
HelloLayabox.ts:44
at new HelloLayabox (file:///D:/layaProjects/mylaya/myLaya/bin/js/bundle.js:10103:28)
at Object.47.../bin/libs/node_modules/es6-promise (file:///D:/layaProjects/mylaya/myLaya/bin/js/bundle.js:10551:1)
at o (file:///D:/layaProjects/mylaya/myLaya/bin/js/bundle.js:11:265)
at r (file:///D:/layaProjects/mylaya/myLaya/bin/js/bundle.js:11:431)
没有找到相关结果
已邀请:
要回复问题请先登录
3 个回复
Aar0n
赞同来自:
iamnst
赞同来自:
180*****237
赞同来自:
TypeError: Laya.Templet is not a constructor
能有详细确切的解决方法吗?
引入相关类库具体要怎么做,哪些类库,怎么引入?
恳请前辈详细指点下,谢谢!