I have been getting this error on my WordPress Site and I keep wondering what exactly this error points to and what to do to get rid of it.
(unknown) Uncaught ReferenceError: u is not defined
at d (<anonymous>:1:693)
at <anonymous>:1:809
at <anonymous>:1:814
Related
Node Express server listening on http://localhost:4000
{ Error: Uncaught (in promise): ReferenceError: window is not defined
ReferenceError: window is not defined
at new DefaultLayoutComponent (D:\Rakesh Project\CTM\MetatagCTMTest\dist\web\server\main.js:1:2704879)
at NodeInjectorFactory.DefaultLayoutComponent_Factory [as factory] (D:\Rakesh Project\CTM\MetatagCTMTest\dist\web\server\main.js:1:2705335)
at getNodeInjectable (D:\Rakesh Project\CTM\MetatagCTMTest\dist\web\server\main.js:1:3080070)
I had a meteor 0.9.3 app that was working.
I ran meteor update. Now I have a bunch or errors (60 total):
Uncaught TypeError: undefined is not a function dynamic_template.js:371
Uncaught TypeError: Cannot read property 'prototype' of undefined helpers.js:140
Uncaught TypeError: undefined is not a function router.js:61
Uncaught TypeError: Cannot read property 'RouteController' of undefined iron-router-progress.js?2b52a697e5a2fba4ec827721c08cfdd0a5bae508:25
Uncaught TypeError: Cannot read property 'RouteController' of undefined global-imports.js?a26cc176b56b3d2b1df619ec7af99630b0fb6a1f:3
Uncaught ReferenceError: Template is not defined template.about.js?3ead3e2cab8a60252235e31f2533c2179f736294:2
Uncaught ReferenceError: Template is not defined template.register.js?60e4180bd0193951fab290d41493f5036f66240d:2
... 53 more errors:
... mainly "Template is not defined" and "Meteor is not defined"
Line 371 of dynamic_template.js is the following:
UI.registerHelper('DynamicTemplate', Template.__create__('DynamicTemplateHelper', function () {
What's wierd is that if I try to go back with meteor update --release 0.9.3 or 0.9.2, I still have those errors. So I'm stuck, I have to fix those.
Another anoying thing is that everytime I start my meteor server, I get updating package catalog with a progress bar, and my server takes a while (~10s) to start up.
Any ideas?
In 0.9.4 there are changes to the templating API. See HISTORY.md on gihub/meteor/meteor for more details.
The fix for your immediate problem is to replace UI with Template
Template.registerHelper('DynamicTemplate', Template.__create__('DynamicTemplateHelper', function () {
After upgraded Meteor from 0.9.0.1 to 0.9.1, I got the following errors in console:
Uncaught TypeError: Cannot read property 'registerHelper' of undefined
Uncaught TypeError: Cannot read property 'T9n' of undefined
Uncaught TypeError: Cannot read property 'AccountsEntry' of undefined
Uncaught ReferenceError: Template is not defined
Uncaught ReferenceError: Meteor is not define
Exception in defer callback: ReferenceError: Spacebars is not defined
It seems that the changes are not backwards compatible.
It sounds like you have a package that is not compatible. To check what this is look at your server console.
If you want to brute force your way into getting it to work, git clone the offending package into /packages and it should get it to work (also add it with meteor add xx where xx is the name of the directory in /packages
Additionally rename the following (even though you would not yet have to) to bring it up to date:
UI.registerHelper -> Template.registerHelper
Handlebars.registerHelper -> Template.registerHelper
I;ve been developing a quizz app recently and it was working consistently but now suddenly a lot of packages are not defined. A small part of the error log below (this goes on to contain most of the packages)
Uncaught ReferenceError: Package is not defined meteor.js? 7a66be7a03504cd2c18dd47b699e6233b60675ed:21
Uncaught ReferenceError: Package is not defined json.js?e22856eae714c681199eabc5c0710b904b125554:21
Uncaught ReferenceError: Package is not defined ejson.js?9ccd48dbafd805e21408c9eae1061468b3ec1f2f:21
Uncaught ReferenceError: Package is not defined logging.js?
Other interesting errors:
Uncaught ReferenceError: Deps is not defined quiz_list.js?b063b352079e20c9f9485683b352f8482a87fdf4:4
Uncaught ReferenceError: Template is not defined
Does anyone know what is causing this and how I can remedy it? I have tried resetting and updating.
I often get a whole slew of these types of errors as a result of one uncaught exception right at the top. If things don't happen in the right order, then things really don't happen.
Try scrolling right up and seeing if there is a more informative error (not always shown in red in Chrome).
I've been working on an app in meteor and it's just giving me blank screen however the page title still works.
I had to double check whether it was my app or the box so I backed up my stuff, started a brand new node box and installed meteor by itself and it's giving me the same problem, has anyone else encountered this?
also, i got these errors chrome's console:
Uncaught SyntaxError: Unexpected end of input jquery.js:5903
Uncaught TypeError: Cannot read property '$' of undefined domutils.js:22
Uncaught TypeError: Cannot read property 'DomUtils' of undefined universal-events.js:23
Uncaught TypeError: Cannot read property 'DomUtils' of undefined spark.js:24
Uncaught TypeError: Cannot read property 'Spark' of undefined preserve-inputs.js:23
Uncaught TypeError: Cannot read property 'Spark' of undefined handlebars.js:23
Uncaught TypeError: Cannot read property 'Spark' of undefined templating.js:23
Uncaught TypeError: Cannot read property 'Template' of undefined global-imports.js:8
Uncaught ReferenceError: Template is not defined template.xy.js:1
Uncaught ReferenceError: Template is not defined xy.js:2
Uncaught ReferenceError: Spark is not defined