[keycloak-user] Angular 2 with Webpack

Brian Schofield scope022 at gmail.com
Mon Jan 30 13:56:50 EST 2017


I made the modifications to my project based off your recommendations.

Here's the stacktrace I'm getting with the latest update:

*TypeError: Cannot read property 'charAt' of undefined*
*    at Function.Keycloak.getRealmUrl (eval at <anonymous>
(http://localhost:3000/app.js:1210:2
<http://localhost:3000/app.js:1210:2>), <anonymous>:200:37)*
*    at Function.Keycloak.createLoginUrl (eval at <anonymous>
(http://localhost:3000/app.js:1210:2
<http://localhost:3000/app.js:1210:2>), <anonymous>:153:30)*
*    at DefaultAdapter.login (eval at <anonymous>
(http://localhost:3000/app.js:1216:2
<http://localhost:3000/app.js:1216:2>), <anonymous>:7:65)*
*    at Function.Keycloak.login (eval at <anonymous>
(http://localhost:3000/app.js:1210:2
<http://localhost:3000/app.js:1210:2>), <anonymous>:32:35)*
    at AppComponent.login (eval at <anonymous> (
http://localhost:3000/app.js:1186:2), <anonymous>:40:38)
    at AppComponent.ngOnInit (eval at <anonymous> (
http://localhost:3000/app.js:1186:2), <anonymous>:35:14)
    at Wrapper_AppComponent.ngDoCheck
(/AppModule/AppComponent/wrapper.ngfactory.js:22:53)
    at
CompiledTemplate.proxyViewClass.View_AppComponent_Host0.detectChangesInternal
(/AppModule/AppComponent/host.ngfactory.js:28:26)
    at CompiledTemplate.proxyViewClass.AppView.detectChanges (eval at
<anonymous> (http://localhost:3000/vendor.js:24:2), <anonymous>:12738:18)
    at CompiledTemplate.proxyViewClass.DebugAppView.detectChanges (eval at
<anonymous> (http://localhost:3000/vendor.js:24:2), <anonymous>:12885:48)
    at ViewRef_.detectChanges (eval at <anonymous> (
http://localhost:3000/vendor.js:24:2), <anonymous>:9907:24)
    at eval (eval at <anonymous> (http://localhost:3000/vendor.js:24:2),
<anonymous>:8797:71)
    at Array.forEach (native)
    at ApplicationRef_.tick (eval at <anonymous> (
http://localhost:3000/vendor.js:24:2), <anonymous>:8797:29)
    at ApplicationRef_._loadComponent (eval at <anonymous> (
http://localhost:3000/vendor.js:24:2), <anonymous>:8772:18)
    at ApplicationRef_.bootstrap (eval at <anonymous> (
http://localhost:3000/vendor.js:24:2), <anonymous>:8760:18)
    at eval (eval at <anonymous> (http://localhost:3000/vendor.js:24:2),
<anonymous>:8581:93)
    at Array.forEach (native)
    at PlatformRef_._moduleDoBootstrap (eval at <anonymous> (
http://localhost:3000/vendor.js:24:2), <anonymous>:8581:46)
    at eval (eval at <anonymous> (http://localhost:3000/vendor.js:24:2),
<anonymous>:8533:31)
    at ZoneDelegate.invoke (eval at <anonymous> (
http://localhost:3000/polyfills.js:2252:2), <anonymous>:242:26)
    at Object.onInvoke (eval at <anonymous> (
http://localhost:3000/vendor.js:24:2), <anonymous>:4427:41)
    at ZoneDelegate.invoke (eval at <anonymous> (
http://localhost:3000/polyfills.js:2252:2), <anonymous>:241:32)
    at Zone.run (eval at <anonymous> (
http://localhost:3000/polyfills.js:2252:2), <anonymous>:113:43)
    at eval (eval at <anonymous> (http://localhost:3000/polyfills.js:2252:2),
<anonymous>:535:57)
    at ZoneDelegate.invokeTask (eval at <anonymous> (
http://localhost:3000/polyfills.js:2252:2), <anonymous>:275:35)
    at Object.onInvokeTask (eval at <anonymous> (
http://localhost:3000/vendor.js:24:2), <anonymous>:4418:41)
    at ZoneDelegate.invokeTask (eval at <anonymous> (
http://localhost:3000/polyfills.js:2252:2), <anonymous>:274:40)
    at Zone.runTask (eval at <anonymous> (
http://localhost:3000/polyfills.js:2252:2), <anonymous>:151:47)
    at drainMicroTaskQueue (eval at <anonymous> (
http://localhost:3000/polyfills.js:2252:2), <anonymous>:433:35)


More information about the keycloak-user mailing list