Angular 2 ZoneAwareError in Tutorial, but only for chrome - javascript

Hello here and thanks for helping !
I'm performing the angular tutorial tour of heroes, and I have ended the point 4.Multiples Components, but the content does not load (we see "Loading AppComponent content here ...") and I have this error on chrome developper tools:
ZoneAwareError {__zone_symbol__error: Error: (SystemJS) Invalid or unexpected token
SyntaxError: Invalid or unexpected token
at eval…, __zone_symbol__stack: "(SystemJS) Invalid or unexpected token↵ SyntaxErro…n.js↵ Error loading
I can't paste more because the error is displaying a very lot of information.
The real problem is here: At this point of the tutorial, my app work perfectly on edge and firefox... I don't understand what is wrong with chrome :/ ...
Thanks

Ok it's seem it's a problem with chrome browser cache... The bug appear at randomly moment, and I have to delete it integraly if I want to see my code working...
I don't know why this error but that fix the problem. Sorry for this, and thanks.

Related

Uncaught Error: Syntax error WordPress - Unable to Post Comments

I'm unable to post comments on my site, I've tried using the standard comments system and de:comments.
When using the standard comments system it takes me to a blank white page with:
You're spam! aren't you?
Written at the top (I've tried on several devices and on mobile, different IP etc).
De:comments shows this error in the console:
Uncaught Error: Syntax error, unrecognized expression: You're spam! aren't you?
See image below for full error:
I've been looking at this for the past week and so far haven't found a solution. It is an adult site so won't post the link - I'm just hoping I've given enough information for someone to be able to help?

Javascript Conflict?

this page is working
is an example of what I want to display on the following page:
this page is not working and I don't know why
although the code is identical the results are not the same, I'm assuming that there is some form of conflict with my wordpress themes javascript. Can anyone tell me what is causing this not to work and also how to recognise problems like this in the future?
Thanks in advance!
I have noticed that there are few errors in your site.
Unexpected token <
and the second one is map API key error.
Google Maps API error: MissingKeyMapError
Please check Unexpected token error and try to solve it, fix all 400 error and set map API key. might be the reason is because of this errors showing in your console.

Resolving Unexpected token < in Chrome for Custom 403 Page

I saw some previous topics related to this but was unable to find a related solution.
On my WordPress blog, WeLearnChess.com, I created a custom 403 error page, and now I am getting a seemingly related syntax error in Chrome. I enabled script debugging in the wp config file and checked with developer tools in Chrome, and I get this error:
Uncaught SyntaxError: Unexpected token < inaccessible:1
This appears to refer to my custom 403 page (http://www.welearnchess.com/inaccessible/). I have BulletProof Security Pro installed, so, to create the custom 403, I replaced the default 403 code with the following line of code via the BPS custom code field:
ErrorDocument 403 http://www.welearnchess.com/inaccessible/
From various tutorials that I saw online, this seems like it should be correct, but I'm new to this so perhaps I've made a mistake that is causing the error. Another interesting point is that, after a hard browser refresh, sometimes the syntax error temporarily changes from :inaccessible to :index or maybe it was:index1 (I'm having trouble reproducing it now).
So, have I done something incorrect with my 403 custom code that could be causing the aforementioned error? Thanks in advance for any assistance you can provide, and please let me know if I need to clarify the question further.
You plugin directory is throwing a 403 error, which means when including <script> tags with src like http://www.welearnchess.com/wp-content/plugins/ultimate-social-deux/public/assets/js/min/us.script-min.js?ver=6.0.4 get redirected to your custom 403 page which is http://www.welearnchess.com/inaccessible/. There are a few instances of this for plugins: ultimate-social-deux, zf-wordpress-category-accordian, rain - where their assets that should be publicly accessible are 403ing. Which means, instead of the actual script your custom page is loaded in the script tag, which is as expected, is invalid JavaScript and hence the errors in your console.

What does Permission denied to access object in Firebug's console (Firebug is a FF addon) using Firefox 17 (latest) version?

just wondering if someone have found seeing the following error in the firebug console, or any idea of what could it mean??
Does this has to do with a browser thing when having the same page opened in two tabs or something??
Have you fixed a similar problem??
What would be a way of ensuring this error is not thrown, is annoying to me :(
Would it have to be with the fact that the site requires cookies, javascript or any considerations you could suggest??
Error: Permission denied to access object
Error: Permission denied to access object
Error:
Error: Permission denied to access object
Error: Permission denied to access object
Error:
Reproducibility:
(6 errors in the console listed when loading a page in two tabs with FF)
Haven't tried other browsers.. This error appears to be unobtrusive, it does not stop any code from continuing, but I would love to get rid of it, or prevent it.. Thanks in advance for the help!! Much appreciated
Edit:
And now I get a new one, which might be the cause of the problem :(
Error in Protected Function !281
In addition:
#Pointy:
- yeah, Tested on FF 18. You are absolutely correct on that statement by the way ;) Thanks for the sanity check :)

JavaScript Error line 1 <ANYJAVASCRIPFILE.JS> SyntaxError: Parse error IN Iphone mobile safari

I keep getting this error when I run my web app (asp.net mvc) in the mobile safari (ITouch)
JavaScript Error line 1
SyntaxError: Parse error
JavaScript Error line 1
SyntaxError: Parse error
I have no problem running this in any other browser (including safari).
I suspect this is something to do with mobile safari handling javascript files.
I am using MicrosoftMvcAjax.js and Jquery.
The above error is totally useless to me and I couldn't figure out where to debug or start.
Any help would be appreciated.
Thanks
The URL is resolved by the client, which doesn't know about the application.
To get a relative path for the client, you can write
<%= ResolveClientUrl("~/Scripts/MicrosoftAjax.js") %>
Turns out the src attribute for the Javascript is the problem.
For some reason is taking me to the domain root instead of the application root.
So instead of looking for http://localhost/application/scripts , the page is looking under
http://scripts...Don't know why?
The Parser error is simply file not found error.
Thanks everyone

Categories

Resources