Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live Examples on Plunker failing with Chrome #20209

Closed
mementum opened this issue Nov 6, 2017 · 8 comments
Closed

Live Examples on Plunker failing with Chrome #20209

mementum opened this issue Nov 6, 2017 · 8 comments

Comments

@mementum
Copy link

mementum commented Nov 6, 2017

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

The live examples work in Mozilla Firexox and Microsoft Edge. It doesn't currently work in Chrome 62.0.3202.75 (Official Build) (64-bit)

Expected behavior

It should work

Minimal reproduction of the problem with instructions

Load it and it won't work

What is the motivation / use case for changing the behavior?

Get it working again

Environment


Angular version: 5.0.0 (from "angular.io"

5.0.0 is also shown as the ng-version after app-root in Mozilla.

The latest tutorial. Any link will do, but an example is: https://angular.io/guide/router and from there the live example: https://angular.io/generated/live-examples/router/eplnkr.html


Browser:
- [ x] Chrome (desktop) version 62.0.3202.75 (Official Build) (64-bit)
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Traces from the console:

vendor.6b9be0480d04ab9c9c6c.js:11 SyntaxError: Unexpected token D in JSON at position 0
    at JSON.parse ()
    at new r (vendor.6b9be0480d04ab9c9c6c.js:11)
    at e (vendor.6b9be0480d04ab9c9c6c.js:11) MessageEvent
r @ vendor.6b9be0480d04ab9c9c6c.js:11
vendor.6b9be0480d04ab9c9c6c.js:11 SyntaxError: Unexpected token D in JSON at position 0
    at JSON.parse ()
    at new r (vendor.6b9be0480d04ab9c9c6c.js:11)
    at e (vendor.6b9be0480d04ab9c9c6c.js:11) MessageEvent
r @ vendor.6b9be0480d04ab9c9c6c.js:11
vendor.js:1 SyntaxError: Unexpected token D in JSON at position 0
    at JSON.parse ()
    at new r (vendor.js:1)
    at e (vendor.js:1) MessageEvent
r @ vendor.js:1
unpkg.com/rxjs@5.5.2/operators/refCount.js Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
run.plnkr.co/:17 Error: (SystemJS) XHR error loading https://unpkg.com/rxjs@5.5.2/operators/refCount.js
	Error: XHR error loading https://unpkg.com/rxjs@5.5.2/operators/refCount.js
	    at Zone.runTask (https://unpkg.com/zone.js@0.7.4/dist/zone.js:151:47) [ => ]
	    at XMLHttpRequest.ZoneTask.invoke (https://unpkg.com/zone.js@0.7.4/dist/zone.js:345:33) []
	Error loading https://unpkg.com/rxjs@5.5.2/operators/refCount.js as "./refCount" from https://unpkg.com/rxjs@5.5.2/operators/share.js
	    at Zone.runTask (https://unpkg.com/zone.js@0.7.4/dist/zone.js:151:47) [ => ]
	    at XMLHttpRequest.ZoneTask.invoke (https://unpkg.com/zone.js@0.7.4/dist/zone.js:345:33) []
	Error loading https://unpkg.com/rxjs@5.5.2/operators/refCount.js as "./refCount" from https://unpkg.com/rxjs@5.5.2/operators/share.js
(anonymous) @ run.plnkr.co/:17
unpkg.com/rxjs@5.5.2/operators/refCount.js Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
unpkg.com/plugin-typescript@5.2.7/lib/plugin.js:304 TypeScript [Warning] transpiling to CommonJS, consider setting module: "system" in typescriptOptions to transpile directly to System.register format
@trotyl
Copy link
Contributor

trotyl commented Nov 6, 2017

It works fine in Version 62.0.3202.75 (Official Build) (64-bit):

image
image

You may need to inspect your local network about why https://unpkg.com/rxjs@5.5.2/operators/refCount.js cannot be accessed.

@mementum
Copy link
Author

mementum commented Nov 6, 2017

Thank you, but as you may read in the report, everything works under Mozilla Firefox and Microsoft Edge in the same local networkS.

The message net::ERR_BLOCKED_BY_CLIENT clearly indicates that it's not the local network the one blocking things.

Furthermore https://unpkg.com/rxjs@5.5.2/operators/refCount.js can be downloaded when pasted directly in the browser

But when working inside the application:

image

It is the only one that fails to be downloaded and only in Chrome.

(Please notice that the cache has been explicitly disabled)

@trotyl
Copy link
Contributor

trotyl commented Nov 6, 2017

Please try disable all Chrome extensions.

@vicb
Copy link
Contributor

vicb commented Nov 6, 2017

can not reproduce

@vicb vicb closed this as completed Nov 6, 2017
@JSMike
Copy link

JSMike commented Nov 7, 2017

this is an adblock/ublock rules issue, EasyPrivacy filter is blocking ./refCount

@JSMike
Copy link

JSMike commented Nov 7, 2017

If using ublock origin add the following rule:

plnkr.co https://unpkg.com xmlhttprequest allow

@JSMike
Copy link

JSMike commented Nov 7, 2017

If using adblock try this:

@@||unpkg.com$xmlhttprequest,domain=run.plnkr.co

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants