これは、未定義の値のプロパティにアクセスしようとした場合に発生します。例えば:
var test; // test is now undefined, typeof(test) would return "undefined"
test.myPropertyName // => throws 'Uncaught TypeError: Cannot read property 'undefined' of undefined'
したがって、初期化されていない変数を使用して操作を実行しようとしているようです。