TypeError: dojo.hitch(...) is not a function

Game development with Board Game Arena Studio
Post Reply
User avatar
tarini
Posts: 45
Joined: 11 July 2013, 22:36
Location: italy
Contact:

TypeError: dojo.hitch(...) is not a function

Post by tarini »

Have you ever see this message? It appears very frequently...
It doesn't interfere with game mechanics and logic but I thinks is not a good thing ;)

Do you know something about this issue?

Thanks :)
User avatar
tarini
Posts: 45
Joined: 11 July 2013, 22:36
Location: italy
Contact:

Re: TypeError: dojo.hitch(...) is not a function

Post by tarini »

Looking through error stacktrace, I can see that there aren't game file but it's all about dojo and BGA framework

Code: Select all

TypeError: dojo.hitch(...) is not a function
Stack trace:
.cache["ebg/core/core"]/</<.ajaxcall/_6af<@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/modules/layer/ly_studio.js:15:276342
.cache["dojo/_base/lang"]/</lang.hitch/<@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:88386
.cache["dojo/_base/xhr"]/</dojo._ioSetArgs/<@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:97148
_184@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:36259
_182@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:35956
.cache["dojo/_base/Deferred"]/</dojo.Deferred/this.callback@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:36777
_184@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:36520
_182@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:35956
.cache["dojo/_base/Deferred"]/</dojo.Deferred/this.callback@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:36777
.cache["dojo/_base/xhr"]/</dojo.xhr/<@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:99872
.cache["dojo/Deferred"]/</_3cc@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:102136
.cache["dojo/Deferred"]/</_3c6@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:102005
.cache["dojo/Deferred"]/</_3cb/this.resolve@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:103466
.cache["dojo/Deferred"]/</_3d2@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:102742
.cache["dojo/Deferred"]/</_3cc@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:102357
.cache["dojo/Deferred"]/</_3c6@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:102005
.cache["dojo/Deferred"]/</_3cb/this.resolve@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:103466
.cache["dojo/Deferred"]/</_3d2@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:102742
.cache["dojo/Deferred"]/</_3cc@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:102422
.cache["dojo/Deferred"]/</_3c6@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:102005
.cache["dojo/Deferred"]/</_3cb/this.resolve@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:103466
.cache["dojo/Deferred"]/</_3d2@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:102742
.cache["dojo/Deferred"]/</_3cc@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:102357
.cache["dojo/Deferred"]/</_3c6@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:102005
.cache["dojo/Deferred"]/</_3cb/this.resolve@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:103466
_305@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:80200
_311@http://1.studio.boardgamearena.com:8081/data/themereleases/140706-1531/js/dojoroot/dojo/dojo.js:15:80505
 dojo.js:15
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: TypeError: dojo.hitch(...) is not a function

Post by sourisdudesert »

Hi,

Well... dojo.hitch IS a function. If it is not it means that something very wrong occurs during the initial Javascript loading (Dojo didn't load properly).

At which moment does this problem occurs?
User avatar
tarini
Posts: 45
Joined: 11 July 2013, 22:36
Location: italy
Contact:

Re: TypeError: dojo.hitch(...) is not a function

Post by tarini »

After deeply debugging, I discovered this issue!

In ajaxCall function I did not pass any function reference (because I don't need any callback). With an empty function everything looks fixed! :D :D
Post Reply

Return to “Developers”