These are chat archives for systemjs/systemjs

17th
Dec 2016
DavidGangel
@DavidGangel
Dec 17 2016 12:56
Hi all
Can someone please help with this issue:
zone.js:392 Unhandled Promise rejection: (SystemJS) Unexpected token < in JSON at position 2
    SyntaxError: Unexpected token < in JSON at position 2
        at SystemJSLoader.instantiate (http://www.private.4cit-group.hu/skins/jspm_packages/github/systemjs/plugin-json@0.1.2/json.js:14:19)
        at ZoneDelegate.invoke (http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:229:26)
        at Zone.run (http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:113:43)
        at http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:509:57
        at ZoneDelegate.invokeTask (http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:262:35)
        at Zone.runTask (http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:151:47)
        at drainMicroTaskQueue (http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:405:35)
        at XMLHttpRequest.ZoneTask.invoke (http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:336:25)
    Error loading http://www.private.4cit-group.hu/skins/jspm_packages/npm/diffie-hellman@5.0…ate.4cit-group.hu/skins/jspm_packages/github/systemjs/plugin-json@0.1.2.js as "./lib/primes.json!systemjs-json" from http://www.private.4cit-group.hu/skins/jspm_packages/npm/diffie-hellman@5.0.2/browser.js ; Zone: <root> ; Task: Promise.then ; Value: Error: (SystemJS) Unexpected token < in JSON at position 2(…) (SystemJS) Unexpected token < in JSON at position 2
    SyntaxError: Unexpected token < in JSON at position 2
        at SystemJSLoader.instantiate (http://www.private.4cit-group.hu/skins/jspm_packages/github/systemjs/plugin-json@0.1.2/json.js:14:19)
        at ZoneDelegate.invoke (http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:229:26)
        at Zone.run (http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:113:43)
        at http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:509:57
        at ZoneDelegate.invokeTask (http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:262:35)
        at Zone.runTask (http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:151:47)
        at drainMicroTaskQueue (http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:405:35)
        at XMLHttpRequest.ZoneTask.invoke (http://www.private.4cit-group.hu/skins/node_modules/zone.js/dist/zone.js:336:25)
    Error loading http://www.private.4cit-group.hu/skins/jspm_packages/npm/diffie-hellman@5.0…ate.4cit-group.hu/skins/jspm_packages/github/systemjs/plugin-json@0.1.2.js as "./lib/primes.json!systemjs-json" from http://www.private.4cit-group.hu/skins/jspm_packages/npm/diffie-hellman@5.0.2/browser.jsconsoleError @ zone.js:392_loop_1 @ zone.js:421drainMicroTaskQueue @ zone.js:425ZoneTask.invoke @ zone.js:336
zone.js:394 Error: Uncaught (in promise): Error: (SystemJS) Unexpected token < in JSON at position 2(…)consoleError @ zone.js:394_loop_1 @ zone.js:421drainMicroTaskQueue @ zone.js:425ZoneTask.invoke @ zone.js:336
is it a systemjs issue at all?
Joel Denning
@joeldenning
Dec 17 2016 17:15
@DavidGangel I don’t think it is a systemjs all. It looks like you’re trying to import the following file: http://www.private.4cit-group.hu/skins/jspm_packages/npm/diffie-hellman@5.0.2/browser.js
But when you go to othat file, it redirects you to http://localhost/skins/jspm_packages/npm/diffie-hellman@5.0.2/browser.js
What happens when you go directly to that localhost url?