Egret社区
1银子
本帖最后由 guanggan123 于 2018-6-6 14:10 编辑

只有一个界面LoginView,用了exml,里面就放了个按钮和两个输入框,
在egret wing里运行都正常,发布微信小程序,用微信小程序开发工具测试报错,按钮的自定义图片没有出来


eui.js:3097 Uncaught (in promise) TypeError: clazz is not a constructor
    at Button.Component.onExmlLoaded (eui.js:3097)
    at $parseURLContent (eui.js:21254)
    at onConfigLoaded (eui.js:21272)
    at Object.<anonymous> (eui.js:1003)
    at ThemeAdapter.onGetRes (main.js:6334)
    at assetsmanager.js? [sm]:2613
    at <anonymous>
Component.onExmlLoaded @ eui.js:3097
$parseURLContent @ eui.js:21254
onConfigLoaded @ eui.js:21272
(anonymous) @ eui.js:1003
onGetRes @ main.js:6334
(anonymous) @ assetsmanager.js? [sm]:2613
Promise rejected (async)
descriptor.value @ assetsmanager.js? [sm]:661
descriptor.value @ assetsmanager.js? [sm]:753
getResByUrl @ assetsmanager.js? [sm]:2286
ThemeAdapter.getTheme @ main.js:6343
getTheme @ eui.js:1002
request @ eui.js:21274
load @ eui.js:21162
Component.$parseSkinName @ eui.js:3074
Component.createChildren @ eui.js:3467
UIComponentImpl.$onAddToStage @ eui.js:1148
DisplayObjectContainer.$onAddToStage @ egret.js:3273
UIComponentImpl.$onAddToStage @ eui.js:1143
DisplayObjectContainer.$onAddToStage @ egret.js:3273
DisplayObjectContainer.$doAddChild @ egret.js:2801
DisplayObjectContainer.addChild @ egret.js:2738
UIManager.popToParnent @ main.js:12451
LoginViewMediator.showPanel @ main.js:12840
LoginModule.enterFlag @ main.js:12699
LoginModule.startup @ main.js:12675
Main.initLogin @ main.js:1121
Main.onThemeLoadComplete @ main.js:1117
EventDispatcher.$notifyListener @ egret.js:349
EventDispatcher.dispatchEvent @ egret.js:328
EventDispatcher.dispatchEventWith @ egret.js:389
Theme.onLoaded @ eui.js:19009
onLoadAllFinished @ eui.js:21204
loaded @ eui.js:21180
onConfigLoaded @ eui.js:21272
(anonymous) @ eui.js:1003
onGetRes @ main.js:6334
(anonymous) @ assetsmanager.js? [sm]:2613
Promise resolved (async)
Resource.getResByUrl @ assetsmanager.js? [sm]:2611
descriptor.value @ assetsmanager.js? [sm]:660
descriptor.value @ assetsmanager.js? [sm]:753
getResByUrl @ assetsmanager.js? [sm]:2286
ThemeAdapter.getTheme @ main.js:6343
getTheme @ eui.js:1002
request @ eui.js:21274
(anonymous) @ eui.js:21186
$loadAll @ eui.js:21175
Theme.onConfigLoaded @ eui.js:19003
(anonymous) @ eui.js:18952
(anonymous) @ eui.js:1003
onGetRes @ main.js:6334
(anonymous) @ assetsmanager.js? [sm]:2613
Promise resolved (async)
Resource.getResByUrl @ assetsmanager.js? [sm]:2611
descriptor.value @ assetsmanager.js? [sm]:660
descriptor.value @ assetsmanager.js? [sm]:753
getResByUrl @ assetsmanager.js? [sm]:2286
ThemeAdapter.getTheme @ main.js:6343
getTheme @ eui.js:1002
Theme.load @ eui.js:18952
Theme @ eui.js:18942
(anonymous) @ main.js:1105
step @ main.js:41
(anonymous) @ main.js:22
fulfilled @ main.js:13
Promise resolved (async)
step @ main.js:15
(anonymous) @ main.js:16
__awaiter @ main.js:12
Main.loadManifestJson @ main.js:1094
Main.onAddToStage @ main.js:1091
EventDispatcher.$notifyListener @ egret.js:349
EventDispatcher.dispatchEvent @ egret.js:328
DisplayObject.dispatchEvent @ egret.js:2440
EventDispatcher.dispatchEventWith @ egret.js:389
DisplayObjectContainer.$doAddChild @ egret.js:2811
DisplayObjectContainer.addChild @ egret.js:2738
Player.initialize @ egret.js:12972
Player.start @ egret.js:12956
WebPlayer.init @ egret.wxgame.js? [sm]:3527
WebPlayer @ egret.wxgame.js? [sm]:3496
runEgret @ egret.wxgame.js? [sm]:3125
(anonymous) @ game.js? [sm]:12
require @ WAGame.js:3
(anonymous) @ gamePage.html:147
eui.js:3097 Uncaught (in promise) TypeError: clazz is not a constructor
    at TextInput.Component.onExmlLoaded (eui.js:3097)
    at $parseURLContent (eui.js:21254)
    at onConfigLoaded (eui.js:21272)
    at Object.<anonymous> (eui.js:1003)
    at ThemeAdapter.onGetRes (main.js:6334)
    at assetsmanager.js? [sm]:2613
    at <anonymous>




分享到 :
0 人收藏

2 个回复

倒序浏览
guanggan123  登堂入室 | 2018-6-6 14:30:43
本帖最后由 guanggan123 于 2018-6-6 16:06 编辑

怎么发了附件没显示?
guanggan123  登堂入室 | 2018-6-6 16:42:04
这个附件是对的,终于传上去了

testcqlogin33.rar

15.26 MB, 下载次数: 0, 下载积分: 银子 -1

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|京网文[2014]0791-191号|京ICP证150115号|Egret社区 ( 京ICP备14025619号 )

Powered by Discuz! X3.4 © 2001-2019 Comsenz Inc.

返回顶部