Application Build with Angular 18 fails due to typing errors
Since upgrading to Angular 18, the following errors occur when building the application:
These errors seem to occur due to not so clean imports and exports in the d.ts files mentioned in the error messages. It would be great if those could be fixed. Until then I am forced to use the compilerOption "skipLibCheck": true.
Have you installed the typescript types as dev dependencies.
@AlijiEmmanuel-dev Thanks for the quick reply.
Yes I also tried installing the types as dev dependencies. It didn't work. Also the types are marked as deprecated because they should by now be included in the JsSip Lib.
I have the same problem. Does anyone have a solution?
I have the same problem. Does anyone have a solution?
Your missing types is missing browser types related, not JsSip related, possibly if you use angular SSR, thoses types (Socket, MediaConstraints) are not available on NodeJs or more precisely only available in Browser).
Adding type web might works
npm install @types/web --save-dev
Or adding lib "dom" into typescript tsconfig.ts Or adding types by yourself in d.ts
Also the types are marked as deprecated because they should by now be included in the JsSip Lib.
MediaConstraints and Socket are not deprecated and only available in browser build, and are native types.
Closing as it's unrelated to JsSIP.