Hello team, asking help here as I keep looking at ...
# ask-a-descoper
j
Hello team, asking help here as I keep looking at documentation and can't find any guide how to fix this. I have installed latest descope angular sdk version to my project and after setting it up this shows up upon running. Would be grateful to get some feedbacks on how to fix this issue. Thank you!
r
Hey @Juniel Kim Did you check this installation steps https://github.com/descope/descope-js/blob/main/packages/sdks/angular-sdk/README.md Can you verify all the installation steps are followed?
d
@Asaf Shen @Nir Gur Arie please suggest
j
Hi @Rahul Rijhwani yes. I use the documentation from here https://docs.descope.com/getting-started/angular and that github link but nothing works out. I tried deleting node_modules and reinstall everything but same errors appear...
a
for the
oidc-client-ts
issue, a workaround will be to install this package as a dev dependency (it is not needed in runtime)
Copy code
npm i --save-dev oidc-client-ts
🙌 1
j
Hello, this command works for oidc issue thanks. After re running only the descope/sdk-mixins issue is showing.
n
Please try to set
moduleResolution
to
node16
or
nodenext
in tsconfig https://www.typescriptlang.org/tsconfig/#moduleResolution
j
Hi @Nir Gur Arie is there any alternative besides setting moduleResolution to node16 or nodenext? After applying this on tsconfig I have to update every imports on my scripts with '.js' and seems a huge change just for the descope-angular-sdk to run 🫤
Hello, hopefully to get some updates about my ask on my issue? thank you!
d
Hi @Juniel Kim sorry for the late response, it is a holiday in the US and other support time zones are on their weekends/night. For the
@descope/sdk-mixins
resolution, switching only
moduleResolution
to
node16
(leaving
module
as-is) should fix it without forcing
.js
extensions:
Copy code
{
  "compilerOptions": {
    "moduleResolution": "node16",
    "skipLibCheck": true
  }
}
If you prefer not to touch
moduleResolution
, a one-line shim also works:
Copy code
// src/descope-shims.d.ts
declare module '@descope/sdk-mixins/static-resources-mixin';
Or:
Copy code
// src/descope-shims.d.ts
declare module '@descope/sdk-mixins/*';
Either option resolves the TS2307 for the mixins.