Closed keedon closed 5 years ago
I've built an angular application as per the instructions on https://github.com/Inrupt-inc/generator-solid-angular
I'm getting an error in the browser console when I press the 'go' button:
solid-auth-client.bundle.js:15 Error logging in with WebID-OIDC j @ solid-auth-client.bundle.js:15 async function (async) j @ solid-auth-client.bundle.js:15 login @ solid-auth-client.bundle.js:15 (anonymous) @ solid.auth.service.ts:89 step @ rdf.service.ts:21 (anonymous) @ rdf.service.ts:21 (anonymous) @ rdf.service.ts:21 ZoneAwarePromise @ zone.js:891 push../src/app/services/solid.auth.service.ts.__awaiter @ rdf.service.ts:21 AuthService.solidLogin @ solid.auth.service.ts:88 (anonymous) @ login.component.ts:46 step @ main.js:681 (anonymous) @ main.js:662 (anonymous) @ main.js:656 ZoneAwarePromise @ zone.js:891 push../src/app/login/login.component.ts.__awaiter @ main.js:652 LoginComponent.onLogin @ login.component.ts:41 (anonymous) @ LoginComponent.html:46 handleEvent @ core.js:10251 callWithDebugContext @ core.js:11344 debugHandleEvent @ core.js:11047 dispatchEvent @ core.js:7710 (anonymous) @ core.js:8154 (anonymous) @ platform-browser.js:988 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:421 onInvokeTask @ core.js:3811 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:420 push../node_modules/zone.js/dist/zone.js.Zone.runTask @ zone.js:188 push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask @ zone.js:496 invokeTask @ zone.js:1540 globalZoneAwareCallback @ zone.js:1566 solid-auth-client.bundle.js:15 TypeError: Cannot read property 'importKey' of undefined at e.value (solid-auth-client.bundle.js:15) at Function.value (solid-auth-client.bundle.js:15) at Function.value (solid-auth-client.bundle.js:15) at solid-auth-client.bundle.js:15 at Array.map (<anonymous>) at Function.value (solid-auth-client.bundle.js:15) at e.json.then.e (solid-auth-client.bundle.js:15) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:138) at zone.js:872 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188) at drainMicroTaskQueue (zone.js:595)
Any ideas?
Solved it. If you run ng serve on another machine, it fails - running on localhost:4200 works fine
I've built an angular application as per the instructions on https://github.com/Inrupt-inc/generator-solid-angular
I'm getting an error in the browser console when I press the 'go' button:
Any ideas?