We recently updated our Angular 18 application from Keycloak version 25 to version 26. Previously, we had the following library versions set up in our package.json which were working fine:
{
...
"keycloak-angular": "^16.0.1",
"keycloak-js": "^25.0.1",
...
}
After updating to keycloak-js version 26, our build is now encountering this issue: https://i.sstatic.net/H3E6RkkO.png
The concern now is why keycloak-angular is unable to find keycloak-js when it was previously functional. Here is the content of tsconfig.json file:
{
"compileOnSave": false,
"compilerOptions": {
...
},
"angularCompilerOptions": {
...
}
}
I have attempted changing the moduleResolution field to "bundler" instead of "node," but that results in another error: https://i.sstatic.net/o7x6z2A4.png
Reverting back to moduleResolution node and using keycloak-js version 25.0.1 resolves the issue. Any insights on this?