2016-10-17 2 views
0

난 항상이 오류 얻을 ExtJS 5.1를 사용 : 당신은 문제가 될 것으로 보인다 것을 볼 당신이 스택 트레이스를 보면,잘못된 네임 스페이스 5.1.1

Uncaught Error: [Ext.ClassManager] Invalid namespace, must be a string @ext-all-debug.js:8430 
parseNamespace   @ ext-all-debug.js:8430 
createNamespaces  @ ext-all-debug.js:8490 
(anonymous function) @ ext-all-debug.js:4450 
onBeforeLaunch   @ Bundle.js?_.dc=1476694441934:227 
onProfilesReady  @ ext-all-debug.js:54622 
constructor   @ ext-all-debug.js:54616 
AppTest.$application @ ext-all-debug.js:7660 
(anonymous function) @ ext-all-debug.js:54856 
invoke     @ ext-all-debug.js:10477 
doInvokeAll   @ ext-all-debug.js:10517 
invokeAll    @ ext-all-debug.js:10486 
unblock    @ ext-all-debug.js:10596 
triggerReady   @ ext-all-debug.js:11090 
checkReady    @ ext-all-debug.js:11194 
load     @ ext-all-debug.js:10969 
require    @ ext-all-debug.js:10882 
triggerReady   @ ext-all-debug.js:11065 
checkReady    @ ext-all-debug.js:11194 
onLoadSuccess   @ ext-all-debug.js:11011 
notify     @ ext-all-debug.js:862 
processLoadedEntries @ ext-all-debug.js:841 
notifyRequests   @ ext-all-debug.js:1308 
complete    @ ext-all-debug.js:1157 
(anonymous function) @ ext-all-debug.js:1163 

답변

0

음을 Bundle.js, 라인 227에 그 추적에 언급 된 최초의 비 엽차 라인 때문에 : 당신이하려고하면

ns = Ext.namespace(me.name); 

console.log(me.name); 

당신이 5.0.0로 시작, 엽차가 gettersetter 방법으로 점점 이동 있기 때문에, undefined 것을 발견 할 것이다, 그래서 가장 좋은 건 .. 또한 포함 증서의 문제라고

console.log(me.getName()); 
+0

입니다 this.initConfig()는 생성자의 모든 구성을로드하는데도 도움이되었습니다. – pjain

관련 문제