[Solved] Problems after Update to 1.11 - Error: jQuery not found

Hey there!

After an update from 1.8 to 1.11 with all packages and so on, I can not seem to start the app again. It’s giving errors related to Blaze, JQuery and Templates; none of which I use in my app. The client is entirely React based.

Errors are as follows and my attempts to install some dependencies did not help:

dombackend.js:8 Uncaught Error: jQuery not found
    at module (dombackend.js:8)
    at fileEvaluate (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:346)
    at Module.require (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:248)
    at require (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:268)
    at blaze.js?hash=a20deb597f76789e171a9ee2b2e37d73fbb7ecda:3735
    at blaze.js?hash=a20deb597f76789e171a9ee2b2e37d73fbb7ecda:3754
module @ dombackend.js:8
fileEvaluate @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:346
require @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:248
require @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:268
(anonymous) @ blaze.js?hash=a20deb597f76789e171a9ee2b2e37d73fbb7ecda:3735
(anonymous) @ blaze.js?hash=a20deb597f76789e171a9ee2b2e37d73fbb7ecda:3754
spacebars.js?hash=6f2be25813c793c0b363a6a91ebb029723f294ec:22 

Uncaught TypeError: Cannot read property 'Blaze' of undefined
    at spacebars.js?hash=6f2be25813c793c0b363a6a91ebb029723f294ec:22
    at spacebars.js?hash=6f2be25813c793c0b363a6a91ebb029723f294ec:331
(anonymous) @ spacebars.js?hash=6f2be25813c793c0b363a6a91ebb029723f294ec:22
(anonymous) @ spacebars.js?hash=6f2be25813c793c0b363a6a91ebb029723f294ec:331
templating-runtime.js?hash=9b008466a63cfaa8a7f0a8703fb4a6d8d253fb06:18 

Uncaught TypeError: Cannot read property 'Blaze' of undefined
    at templating-runtime.js?hash=9b008466a63cfaa8a7f0a8703fb4a6d8d253fb06:18
    at templating-runtime.js?hash=9b008466a63cfaa8a7f0a8703fb4a6d8d253fb06:252
(anonymous) @ templating-runtime.js?hash=9b008466a63cfaa8a7f0a8703fb4a6d8d253fb06:18
(anonymous) @ templating-runtime.js?hash=9b008466a63cfaa8a7f0a8703fb4a6d8d253fb06:252
templating.js?hash=bdb2d25c8c2ecf9a55d420f7d84e264af6b08e3d:14 

Uncaught TypeError: Cannot read property 'Template' of undefined
    at templating.js?hash=bdb2d25c8c2ecf9a55d420f7d84e264af6b08e3d:14
    at templating.js?hash=bdb2d25c8c2ecf9a55d420f7d84e264af6b08e3d:23
(anonymous) @ templating.js?hash=bdb2d25c8c2ecf9a55d420f7d84e264af6b08e3d:14
(anonymous) @ templating.js?hash=bdb2d25c8c2ecf9a55d420f7d84e264af6b08e3d:23
accounts-ui-unstyled.js?hash=58e7fc442808c06bc68b6b2edb17fa4f498765fb:21 

Uncaught TypeError: Cannot read property 'Template' of undefined
    at accounts-ui-unstyled.js?hash=58e7fc442808c06bc68b6b2edb17fa4f498765fb:21
    at accounts-ui-unstyled.js?hash=58e7fc442808c06bc68b6b2edb17fa4f498765fb:1989
(anonymous) @ accounts-ui-unstyled.js?hash=58e7fc442808c06bc68b6b2edb17fa4f498765fb:21
(anonymous) @ accounts-ui-unstyled.js?hash=58e7fc442808c06bc68b6b2edb17fa4f498765fb:1989
modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:12818 Warning: React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.
printWarning @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:12818
warn @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:12781
createFactoryWithValidation @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:14330
(anonymous) @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:117617
(anonymous) @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:117568
(anonymous) @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:112841
(anonymous) @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:112684
module @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:112692
fileEvaluate @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:346
require @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:248
require @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:268
(anonymous) @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:112593
module @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:112601
fileEvaluate @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:346
require @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:248
moduleLink @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:326
module @ Loader.jsx:1
fileEvaluate @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:346
require @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:248
moduleLink @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:326
module @ LayoutContainer.jsx:1
fileEvaluate @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:346
require @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:248
moduleLink @ modules.js?hash=32b656491d43aa4d79a49b88c290631d40ecbe9e:326
module @ Activities.jsx:1
fileEvaluate @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:346
require @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:248
require @ modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:268
(anonymous) @ app.js?hash=21242f466ae928b4b78ef725be53d69ebe8dfa70:13778
main.js:12 

Uncaught TypeError: Cannot read property 'config' of undefined
    at main.js:12
    at maybeReady (meteor.js?hash=857dafb4b9dff17e29ed8498a22ea5b1a3d6b41d:938)
    at HTMLDocument.loadingCompleted (meteor.js?hash=857dafb4b9dff17e29ed8498a22ea5b1a3d6b41d:950)

Please some help!

My problems were solved with an installation of jquery and blaze

meteor add blaze jquery

Can anyone please tell why all of a sudden I needed these packages? I don’t use them, nor have I had them before at v1.8

Thanks

It sounds like you may have added a package which depends on them. Try the meteor list --tree command to identify where those dependencies are referenced.

Thanks @robfallows ! I figured out that jquery was not depended upon by any other package. Then after a bit of digging in, I realised I had an outdated code for Accounts-ui configuration which required jquery…

Now it’s resolved. Cheers Rob!

2 Likes

Trying to update to 2.0, I’m running into exactly same problem.

And this time, adding these packages won’t help; I still get errors:

- dombackend.js:8 Uncaught Error: jQuery not found
- Uncaught TypeError: Cannot read property 'Blaze' of undefined
- Uncaught TypeError: Cannot read property 'Template' of undefined
- Uncaught ReferenceError: meteorInstall is not defined

Some of these I have a few. Why is this happening?
Also when I run meteor list --tree there’s no jquery even mentioned strangely…
By the way this happens rather intermittently. I mean the page loaded a little at some point without problems, but then same happened after I installed an npm package :crazy_face: :crazy_face:

There are still some packages that use jquery. I also encountered this problem. It would be great if jqeury can be completely deleted. There is no need to use it, increases the size of the software.

Totally!

It turns out that I had other obstacles that prevented me to install jquery or any npm package. The dreary bcrypt was the original reason. But then found a SO answer that helped me fix the problem. In case someone experiences the same problem:

npm i -g node-gyp
This is what’s really worked to overcome the bcrypt related problems/warnings…

Then:
meteor npm install bcrypt
meteor npm install jquery