Closed dacofr closed 7 years ago
Hi, Your configuration looks fine but there are other configurations files (webpack). I just tested the lib with a fresh project based on https://github.com/AngularClass/angular-starter (it runs under angular 4.1.2). I just added the lib dependency in the package.json, updated the app.module.ts to declare the module and compilation is OK. I added a login button on the home page + a valid keycloak.json and I am able to view the login page. To me It seems to be more a app configuration issue rather than a lib issue.
You can try with version 0.8.1, I tried with a fresh angular 4 project (4.2.5) + angular-cli 1.2.0. Have a look to the exemple for the module import.
Hi,
I'm new in the world JS with Angular + Typescript + Webpack :)
I've tried to implement your module to use KC
My package.json looks like
I've modified my main module (named BopModule) and my component to implement OnInit like the usage https://github.com/ebondu/angular2-keycloak#usage
When i run my start my application (npm start), i obtain the error in my JS console
My BopModule look like
Do you think i've made a mistake ? Or do you think that your library could be incompatible with Angular4 ?
Thanks for yout help