Discourse fails with this.resource is not a function how do I find which plugin it is?


(Carlo Kok) #1

After upgrading to latest (test succeeded) from yesterday I get:

TypeError: this.resource is not a function
at e.map (https://talk.remobjects.com/assets/plugin-third-party-c15b045136f5ae5869b035bca4dbde77d1a2af05355e10d92889d2cc7ef5c07f.js:1:31515)

This seems to be related to 1 of my plugins, but how do I find out which?

_ember_jquery-37ec894….js:54140DEPRECATION: `discourse/views/topic-status` was moved to `discourse/raw-views/topic-status`o @ _ember_jquery-37ec894….js:54140i @ _ember_jquery-37ec894….js:54124r.state @ _ember_jquery-37ec894….js:54181e @ _ember_jquery-37ec894….js:54048require @ _ember_jquery-37ec894….js:54180(anonymous function) @ _application-e1274ce….js:1253(anonymous function) @ _application-e1274ce….js:1264value @ _application-e1274ce….js:1250(anonymous function) @ (index):452(anonymous function) @ (index):456
_ember_jquery-37ec894….js:31194 TypeError: this.resource is not a function
    at e.map (https://talk.remobjects.com/assets/plugin-third-party-c15b045136f5ae5869b035bca4dbde77d1a2af05355e10d92889d2cc7ef5c07f.js:1:31515)
    at e.value (https://talk.remobjects.com/assets/application-e1274ceed913fb734402dae7314c227a1b2cb63f5767b423889615e254e34327.js:8:31373)
    at https://talk.remobjects.com/assets/application-e1274ceed913fb734402dae7314c227a1b2cb63f5767b423889615e254e34327.js:8:30307
    at Array.forEach (native)
    at n (https://talk.remobjects.com/assets/application-e1274ceed913fb734402dae7314c227a1b2cb63f5767b423889615e254e34327.js:8:30253)
    at Object.initialize (https://talk.remobjects.com/assets/application-e1274ceed913fb734402dae7314c227a1b2cb63f5767b423889615e254e34327.js:64:31285)
    at Object.test.n.initialize (https://talk.remobjects.com/assets/application-e1274ceed913fb734402dae7314c227a1b2cb63f5767b423889615e254e34327.js:1:20436)
    at https://talk.remobjects.com/assets/ember_jquery-37ec8949e7219a8c2b3cdebef9d43bc64a66860ec196f3e10bea842d0296256f.js:5:7117
    at https://talk.remobjects.com/assets/ember_jquery-37ec8949e7219a8c2b3cdebef9d43bc64a66860ec196f3e10bea842d0296256f.js:5:7430
    at Object.t [as default] (https://talk.remobjects.com/assets/ember_jquery-37ec8949e7219a8c2b3cdebef9d43bc64a66860ec196f3e10bea842d0296256f.js:18:1331)s @ _ember_jquery-37ec894….js:31194trigger @ _ember_jquery-37ec894….js:52141(anonymous function) @ _ember_jquery-37ec894….js:53392invoke @ _ember_jquery-37ec894….js:343flush @ _ember_jquery-37ec894….js:407flush @ _ember_jquery-37ec894….js:215end @ _ember_jquery-37ec894….js:570run @ _ember_jquery-37ec894….js:692join @ _ember_jquery-37ec894….js:712u.join @ _ember_jquery-37ec894….js:20452(anonymous function) @ _ember_jquery-37ec894….js:20515l @ _ember_jquery-37ec894….js:7fireWith @ _ember_jquery-37ec894….js:7ready @ _ember_jquery-37ec894….js:7a @ _ember_jquery-37ec894….js:7
_ember_jquery-37ec894….js:4740 Uncaught TypeError: this.resource is not a function(…)map @ _plugin-third-party-c15b045….js:1675value @ _application-e1274ce….js:16190(anonymous function) @ _application-e1274ce….js:16277n @ _application-e1274ce….js:16274initialize @ _application-e1274ce….js:101378test.n.initialize @ _application-e1274ce….js:1242(anonymous function) @ _ember_jquery-37ec894….js:5365(anonymous function) @ _ember_jquery-37ec894….js:5393t @ _ember_jquery-37ec894….js:54011n.topsort @ _ember_jquery-37ec894….js:2542_runInitializer @ _ember_jquery-37ec894….js:5392runInitializers @ _ember_jquery-37ec894….js:5360_bootSync @ _ember_jquery-37ec894….js:4731domReady @ _ember_jquery-37ec894….js:4625run @ _ember_jquery-37ec894….js:688join @ _ember_jquery-37ec894….js:712u.join @ _ember_jquery-37ec894….js:20452(anonymous function) @ _ember_jquery-37ec894….js:20515l @ _ember_jquery-37ec894….js:7fireWith @ _ember_jquery-37ec894….js:7ready @ _ember_jquery-37ec894….js:7a @ _ember_jquery-37ec894….js:7

(Régis Hanol) #2

You will have to disable them all and enabled them one by one. I would start with unofficial plugins though.


(Carlo Kok) #3

Thanks. Looks like Babble again.


(DiscourseMetrics.com) #4

Same problem here. Looks like babble


Speccing out a full page chat plugin
(Carlo Kok) #5

Confirmed btw. After removing Babble, all is working.