MeteorJS Uncaught SyntaxError: Unexpected end of input - javascript

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.

Related

spl-token:12 Uncaught ReferenceError: exports is not defined

I want import https://npm.devtool.tech/cdn/#solana/spl-token for my google extension
<script src="https://unpkg.com/#solana/web3.js#latest/lib/index.iife.min.js"></script>
<script src="https://unpkg.com/#solana/spl-token"></script>
Web3.js is working fine. But SPL-Token raise Exception:
Uncaught ReferenceError: exports is not defined
at spl-token:12:23
I tried another CDNs, but all to no avail.

JQuery errors with Wordpress site after deleting and setting up directories

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.

Discover Meteor, Chapter 3-5: plain grey screen and no data

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

Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH error for minified Angular.js file

I am getting the following error on Google chrome browser
Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH error for minified Angular.js file
Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH /js/angular/angular.js Uncaught TypeError: Cannot read property 'module' of undefined angular-cookies.js:6
Uncaught TypeError: Cannot read property 'module' of undefined
Uncaught ReferenceError: angular is not defined
Uncaught ReferenceError: angular is not defined
This error usually pops up when I delete browser's cache and try to access the application (Java/JSP application with angular.js for frontend).
But when I refresh the page the error goes away.
Also, in the browser source tab(Development tools), I find the angular.js file completely blank and in my server logs I don't see any error for my angular.js file request.
GET /*/js/angular/angular.js HTTP/1.1" 200 125539 3 1
This issue sometimes also occur in Firefox
Has anybody experienced this issue and have any suggestions on how I can fix this issue?

Page not launching with AngularSeed on Firebase URL

I followed in detail the five minute tutorial at: https://www.youtube.com/watch?v=hj0LyZ13D3Q
I executed the following steps:
I set up an account at Firebase.com
I set up a new app within my Firebase account
I opened my terminal and:
sudo npm install -g firebase-tools
firebase login (followed by email and password for firebase.com)
firebase bootstrap
selected the new app as listed from Firebase
chose the angular template
cd to the newly created directory
firebase login
On the video, the new site is up and running at https://newapp.firebaseapp.com
In my case I get nothing but a blank screen and my JS console provides nothing but a series of errors:
GET https://myapp.firebaseapp.com/bower_components/html5-boilerplate/css/normalize.css myapp.firebaseapp.com/:9
GET https://myapp.firebaseapp.com/bower_components/html5-boilerplate/css/main.css myapp.firebaseapp.com/:10
GET https://myapp.firebaseapp.com/bower_components/angular/angular.js myapp.firebaseapp.com/:33
GET https://myapp.firebaseapp.com/bower_components/html5-boilerplate/js/vendor/modernizr-2.6.2.min.js myapp.firebaseapp.com/:12
GET https://myapp.firebaseapp.com/bower_components/angular-route/angular-route.js myapp.firebaseapp.com/:34
GET https://myapp.firebaseapp.com/bower_components/firebase/firebase.js myapp.firebaseapp.com/:35
GET https://myapp.firebaseapp.com/bower_components/firebase-simple-login/firebase-simple-login.js myapp.firebaseapp.com/:36
GET https://myapp.firebaseapp.com/bower_components/angularfire/dist/angularfire.js myapp.firebaseapp.com/:37
Uncaught ReferenceError: angular is not defined app.js:4
Uncaught ReferenceError: angular is not defined config.js:4
Uncaught ReferenceError: angular is not defined controllers.js:5
Uncaught ReferenceError: angular is not defined decorators.js:9
Uncaught ReferenceError: angular is not defined directives.js:6
Uncaught ReferenceError: angular is not defined filters.js:5
Uncaught ReferenceError: angular is not defined routes.js:3
Uncaught ReferenceError: angular is not defined services.js:6
Uncaught ReferenceError: angular is not defined firebase.utils.js:3
Uncaught ReferenceError: angular is not defined simpleLogin.js:2
Uncaught ReferenceError: angular is not defined
I'm using Node v0.10.32, Firebase Command Line Tools Version 1.1.2
For whatever reason, the tutorial omited the bower angular bower_components. https://github.com/firebase/generator-angularfire
I copied and pasted them from another project and put the corresponding scripts from the other project in the head of my index.html and it works.

Categories