Closed sebastienpattyn93 closed 6 years ago
I assume you were following these steps: npm install -g @ssilvert/keycloak-schematic ng generate keycloak --collection @ssilvert/keycloak-schematic --clientId=<clientName>
Try doing the npm install without the -g option.
I just discovered your problem. I upgraded Angular CLI and saw it.
I have tried the install with and without the -g option in my Application folder as normal user and as root user, but it all gives me the same response
It looks like the --collection option no longer works. I have a workaround for now.
ng config cli.defaultCollection @ssilvert/keycloak-schematic ng generate keycloak --clientId=<clientName> ng config cli.defaultCollection @schematics/angular
Thank you for your response.
This worked for me, but since I'm on Angular 6 I just had to execute npm install rxjs-compat --save
since it is missing since Angular 6.0.0. I was now able to launch myApp and got redirected to Keycloak
ng generate @ssilvert/keycloak-schematic:keycloak --clientId=myApp
Thanks siavashoutadi. I knew there must be a new way to do it, but I couldn't find one.
thank you
I followed the steps to integrate the keycloak schematic in my angular application but I keep getting the same error:
I have to tried to install everything as root and generate it is root but it is giving me the same errors.