This is a follow-up question on Meteor: "=> Exited with code: 8" error.
Since Chapter 3 of Discover Meteor, whenever I run the server and visit the http://localhost:3000/ URL (or any other page of the app), I only get a plain, grey screen, with nothing on it:
I decided to go on with the tutorial, hoping that the next chapters would result in fixing what was wrong by updating some files, but it did not.
There is no error in the server log, so I cannot reproduce them here.
However, you can find all the files of the project on GitHub: https://github.com/thibaudclement/microscope
UPDATE: here are the client-side console logs:
Uncaught TypeError: Template.__create__ is not a function
meteor.js:225 Uncaught TypeError: Cannot read property 'prototype' of undefined
iron-router.js:1475 Uncaught TypeError: undefined is not a function
global-imports.js:3 Uncaught TypeError: Cannot read property 'RouteController' of undefined
template.layout.js:2 Uncaught ReferenceError: Template is not defined
template.loading.js:2 Uncaught ReferenceError: Template is not defined
template.post_item.js:2 Uncaught ReferenceError: Template is not defined
template.post_page.js:2 Uncaught ReferenceError: Template is not defined
template.posts_list.js:2 Uncaught ReferenceError: Template is not defined
template.main.js:2 Uncaught ReferenceError: Template is not defined
router.js:1 Uncaught ReferenceError: Router is not defined
post_item.js:1 Uncaught ReferenceError: Template is not defined
posts_list.js:1 Uncaught ReferenceError: Template is not defined
posts.js:1 Uncaught ReferenceError: Meteor is not defined
meteor.js:888 Exception in defer callback: TypeError: Cannot read property 'insert' of undefined
at Utils.extend.autoRender (http://localhost:3000/packages/iron-router.js?af9f4791b8af4582a37d93bcade1eed163a976a8:1636:17)
at http://localhost:3000/packages/iron-router.js?af9f4791b8af4582a37d93bcade1eed163a976a8:1465:16
at _.extend.withValue (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:955:17)
at http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:435:45
at Object.<anonymous> (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:983:22)
at onGlobalMessage (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:372:23)
Any idea of what I am doing wrong?
Or at least, where I should start looking to find what is going wrong?
Problem may be you're following old version of the book or with microscope(not sure)
I cloned your app and tried to run
in your .meteor/packages file
change
iron-router
spin
to
iron:router
sacha:spin
it is working fine for me afer these changes
Related
If I do a normal build using ng build then not getting this error
Uncaught (in promise): TypeError: Cannot read property 'dxswipestart' of undefined
But when I am doing prod build, getting the above error.
Could anyone please help me on this to resolve an issue?
So I am learning how to develop an MS Project add-in.
I was successful in deploying the tutorial (yayy!): https://learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/project-quickstart
Then I replaced the html and the js code with the example code from here: https://dev.office.com/reference/add-ins/shared/projectdocument.gettaskbyindexasync
And it stopped working!
I started a new project from scratch. Again, as in the tutorial, "Office Add-in project using Jquery framework", "Javascript" as selected options.
And it still didn't work.
Error message from F12 dev tools:
jQuery.Deferred exception: 'app' is undefined ReferenceError: 'app' is undefined
at Anonymous function (eval code:14:13)
at mightThrow (https://localhost:3000/node_modules/jquery/dist/jquery.js:3534:10)
at Anonymous function (https://localhost:3000/node_modules/jquery/dist/jquery.js:3602:12) undefined
SCRIPT5009: 'app' is undefined
jquery.js (3827,3)
The error is spawned from the following row from the JS code:
app.initialize();
There is no "app.initialize();" in the tutorial. If I decide to delete this row, the error goes away (naturally), but then interacting with the functionality spawns another error message:
Unable to get property 'push' of undefined or null reference
Then I tried to define some 'app' Object.
I initialized it with
var app = Object.context;
The error then is:
Unable to get property 'initialize' of undefined or null reference
I am still trying to figure out, where this 'app' Object comes from. Or at least, how can I define it properly. Any ideas?
Upgrading Reaction Commerce from 1.4.x to 1.5.x with rc run I'm getting this error in Firefox:
TypeError: require(...).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED is undefined
and these errors in Chrome:
Uncaught TypeError: Cannot read property 'EventPluginHub' of undefined
Uncaught TypeError: Cannot read property 'marketplaceEnabled' of undefined
I found imports/plugins/core/ui/client/helpers/react-template-helper.js where React is mainly being loaded I think. Any ideas what could be missing here?
Issue Source Code:
https://github.com/MassDistributionMedia/rc-ca-blinds/tree/custom-cart_rc1.5.6
Please remove react-tap-event-plugin from client/modules/core/main.js. It's no longer necessary.
I wanted to change the location of my Wordpress website from a subdirectory to the root. I made a back-up of my files and my database. But I made a mistake by moving my site to the root. First, I moved the site in Filezilla and after that I changed the URL in wordpress. I was dealing with a 500 error, so my hosting company advised me to restore everything to what is was before.
Now my site gives 22 Jquery errors and I can't adjust anything in wp-admin anymore.
These are my errors I'm dealing with:
Uncaught SyntaxError: Invalid or unexpected token
jquery-migrate.min.js:2 Uncaught ReferenceError: jQuery is not defined at query-migrate.min.js:2
jquery.flexslider-min.js:5 Uncaught SyntaxError: Invalid or unexpected token
jquery.mCustomScrollbar.js:43 Uncaught ReferenceError: jQuery is not defined at jquery.mCustomScrollbar.js:43 at jquery.mCustomScrollbar.js:45
jquery.fancybox.js:2020 Uncaught ReferenceError: jQuery is not defined at jquery.fancybox.js:2020
enter code here jquery.elevatezoom.js:1790 Uncaught ReferenceError: jQuery is not defined
at jquery.elevatezoom.js:1790
jquery.dotdotdot.min.js:13 Uncaught ReferenceError: jQuery is not defined
at jquery.dotdotdot.min.js:13
jquery.gridrotator.js:756 Uncaught ReferenceError: jQuery is not defined
at jquery.gridrotator.js:756
bootstrap.min.js:6 Uncaught SyntaxError: Invalid or unexpected token
jquery.colorbox.js:4 Uncaught SyntaxError: Invalid or unexpected token
shortcodes.js:31 Uncaught ReferenceError: jQuery is not defined
at shortcodes.js:31
parallax.js:154 Uncaught ReferenceError: jQuery is not defined
at parallax.js:154
uikit.min.js:3 Uncaught Error: UIkit requires jQuery
at uikit.min.js:3
at uikit.min.js:3
main.js:782 Uncaught ReferenceError: jQuery is not defined
at main.js:782
(index):184 Uncaught ReferenceError: jQuery is not defined
at (index):184
scripts.js:481 Uncaught ReferenceError: jQuery is not defined
at scripts.js:481
jquery.sliderPro.js:1450 Uncaught ReferenceError: jQuery is not defined
at jquery.sliderPro.js:1450
post-favorite.js:29 Uncaught ReferenceError: jQuery is not defined
at post-favorite.js:29
datepicker.min.js:5 Uncaught SyntaxError: Invalid or unexpected token
js_composer_front.min.js?ver=5.1.1:1 Uncaught ReferenceError: jQuery is not defined
at getSizeName (js_composer_front.min.js?ver=5.1.1:1)
at js_composer_front.min.js?ver=5.1.1:1
owl.carousel.min.js:47 Uncaught ReferenceError: jQuery is not defined
at owl.carousel.min.js:47
tb.carousel.js:209 Uncaught ReferenceError: jQuery is not defined
at tb.carousel.js:209
Thanks a lot for your help!
Ok, I think I found the issue. the jquery seems to be corrupted when you move folders around. On the left below image is original jquery.1.12.4 and the one on the right is what you have.
I have this problem with meteor and the error in the client browser is this
underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:1110 Uncaught SyntaxError: Unexpected end of input
meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:21 Uncaught ReferenceError: Package is not defined
json.js?e22856eae714c681199eabc5c0710b904b125554:21 Uncaught ReferenceError: Package is not defined
base64.js?1a63019243b73298e2964e6d4680f25bca657726:21 Uncaught ReferenceError: Package is not defined
ejson.js?71047b64b5196348bdbe5fd5eea9ac97a5a9eb14:21 Uncaught ReferenceError: Package is not defined
logging.js?07e201b648f16be8435a4f666156995eeda0c750:21 Uncaught ReferenceError: Package is not defined
reload.js?da8974b7231dd8c0caccb5f322dcf97329d486d1:21 Uncaught ReferenceError: Package is not defined
tracker.js?6d0890939291d9780f7e2607ee3af3e7f98a3d9c:21 Uncaught ReferenceError: Package is not defined
random.js?fe7b46080c91ce482acf6fc326afbc5b176f0502:21 Uncaught ReferenceError: Package is not defined
retry.js?1f1dd2c35d300110fdaba51ce4473583bc3bf031:21 Uncaught ReferenceError: Package is not defined
but in the server there is no error. Any ideas?
There is a proxy or CDN in between you and the server or your browser cache isn't refreshing the file.
You've requested meteor.js which isn't a complete file (cut off half way). This is is the cause of the Unexpected End of file error.
Clear your cache, or force your proxy/CDN to refresh the file's record.