[Blaze] Uncaught TypeError: Cannot read property 'event' of undefined

891 views
Skip to first unread message

Sam Johnson

unread,
Mar 28, 2014, 11:40:07 AM3/28/14
to meteo...@googlegroups.com
After upgrading to Blaze this morning I received this slew of errors in the browser console: 

  1. Uncaught TypeError: Cannot read property 'event' of undefined dombackend.js:55
  1. Uncaught TypeError: Cannot read property 'UI' of undefined templating.js?b36d51fd34724d5d501d8557cd9f846874d95aef:22
  1. Uncaught TypeError: Cannot read property 'Template' of undefined jqueryui.js?7917ef119ecea9734a973c35f7beaa51f401a53a:22
  1. Uncaught TypeError: Cannot read property 'UI' of undefined spacebars.js?5d478ab1c940b6f5a88f78b8adc81a47f022da77:23
  1. Uncaught TypeError: Cannot read property 'UI' of undefined global-imports.js?7bda231ac63017eab3b2e9656d79f89b7f5f7841:10
  1. Uncaught ReferenceError: Template is not defined template.budget.js?886ed9d8a98c7915faa4dad4e1635e636b21fdfd:2
  1. Uncaught ReferenceError: Template is not defined template.questions.js?ab27607e310cd8c24e8481183bb1c9e2571ba4af:2
  1. Uncaught ReferenceError: UI is not defined template.main.js?9745464023426b4e4484ffc3341f9418bab5e559:2
  1. Uncaught ReferenceError: Template is not defined login.js?57b3e59881d1f511a4bfac363a0cca5113926af8:29
  1. Uncaught ReferenceError: Template is not defined structure.js?097d3d0a63022c438bfb12801163a392e07c8116:1
  1. Uncaught ReferenceError: Template is not defined budget.js?882bf3e6b267a776ef54327c1403b618e85905c6:10
  1. Uncaught ReferenceError: Template is not defined questions.js?1123120ff5be2c5a0b202cec06c074141aa6c862:5



The line in dombackend.js is : "$jq.event.special[JQUERY_REMOVAL_WATCHER_EVENT_NAME]"

I read through the "Using Blaze" doc and did not come across anything that helped. This project is relatively barebones.

Gadi Cohen

unread,
Mar 28, 2014, 12:32:33 PM3/28/14
to meteo...@googlegroups.com
Did you or any package you're using download the 'jquery' package from Atmosphere (as opposed to the one included with Meteor) ?  If so, see the README at:


or did you otherwise include your own version of jQuery somewhere?  What does $.fn.jquery say in your JavaScript console?  It should be 1.11.0.

Let me know either way.  If this is a common situation I'd like to add it to Blaze Notes.

Sam Johnson

unread,
Mar 28, 2014, 12:49:21 PM3/28/14
to meteo...@googlegroups.com
Yeah that was the problem. I added the jquery2 package and things seem to work fine. 

Although now it seems that the foundation-5 package is giving an error Uncaught TypeError: Property '$' of object [object Object] is not a function. That is obviously a package specific thing since my other calls to jQuery are working fine now.

Thanks for the help.


--
You received this message because you are subscribed to a topic in the Google Groups "meteor-talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/meteor-talk/mImcCpfHuRI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to meteor-talk...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gadi Cohen

unread,
Mar 28, 2014, 1:30:29 PM3/28/14
to meteo...@googlegroups.com
Great news.  For foundation-5, I believe you want to use the "ui" branch of the project.

Note, jquery2 is a last resort.  I wrote it, but I don't recommend using it unless you really need it :)
From what I understood, foundation-5's author is currently trying to use the jquery included with Meteor.
If he finds that doesn't work, he can make foundation-5 depend on jquery2... you shouldn't need to include it directly.

Of course, if you understand all the implications (no IE6-8, both versions of jQuery sent to the client) and specifically wanted jQuery 2, by all means, enjoy :)

Benjamin Evans

unread,
May 14, 2014, 11:30:18 PM5/14/14
to meteo...@googlegroups.com
Hi. 
I am getting a similar message but for 'find'

Exception from Deps recompute function: TypeError: Cannot read property 'find' of undefined at Array.Template.results_grid_abc.results


Reply all
Reply to author
Forward
0 new messages