PDA

View Full Version : Firebugのエラーメッセージと対処方法



yuki
12 Mar 2009, 12:18 AM
本当はWikiとかでまとめた方がいいとは思いますが、まずは情報収集ということで、Ext JSとFirebugを使って開発をしているときによく出くわす:Dエラーメッセージ(とその意味や対処方法)を共有しませんか?

とりあえず、自分でメモしておいたものを晒してみます:

sb is undefined
多分「Symbol is undefined」の略。変数が見つからない→変数名のタイプミスの可能性?
c is undefined
多分「Cfg is undefined」。あるべき引数がない場合に発生?
this.onMetaChange is undefined
Storeを継承したクラスをの呼び出しに「new」を忘れた場合
cls is undefined
xtypeの定義しわすれか、タイプミス
types[config.xtype || defaultType] is not a constructor
定義されていないxtypeの呼び出し
sp is undefined
クラスが定義されてない?
this.events not defined
コンストラクタ定義がおかしい?


みなさんも、手持ちのネタをぜひ投稿してください:)

yuki
7 Apr 2009, 5:44 AM
this.addEvents is not a function
newし忘れ(コンストラクタをnew無しで呼んでしまっている)。

kiyoto01
9 Jun 2009, 3:28 AM
* ct is null

renderTo を使った場合に、指定した ID のエレメントが存在しない。
onRender() 内。

* this.el is null

applyTo を使った場合に、指定した ID のエレメントが存在しない。
applyToMarkup() 内。


renderTo や applyTo は document.getElementById がきくように
document の初期化、DOM 生成後の Ext.onReady() 内でやりましょう。

Andreas B.
25 Jun 2010, 2:11 AM
cls is undefined
xtypeの定義しわすれか、タイプミス


I have exactly this failure message in firebug. Can somebody translate the explanation to english?