Uncaught SyntaxError: Unexpected end of input


#1

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?


#2

I think you must provide some more info, like the code that that is calling that function in underscore


#3

@ralof How will I know what function is calling underscore. I think underscore package is default in meteor. Its really difficult to debug with this kind of error :frowning:


#4

Did it work until a certain point? If not, strip your code until it runs… or post some context for us :slight_smile:


#5

@ralof yes it work. I will try to strip it one by one just guessing what went wrong. I think meteor needs to improve in this kind of error. What if you have lots of codes and hit with this kind of error. Its very difficult to debug. :frowning:


#6

This is weird. I tried to used incognito window the error does not exist. I tried to delete cookies but still the error exist. I tried to used firefox the error did not exist.