Info: node_modules/node-expose-sspi/dist/sso/client.d.ts:3:8 - error TS1192: Module '"http"' has no default export. after I installed node-expose-sspi, then compiled the Angular project(version 10), I met this error. anyone give some advice for this? thanks~~
Code:
import { Injectable } from "@angular/core";
import { sso } from "node-expose-sspi";
@Injectable()
export class LanIPService {
constructor() { }
getLanID():any{
(async () => {
try {
const response = await new sso.Client().fetch('http://localhost:3500');
const json = await response.json();
return json;
} catch (e) {
console.error(e);
}
})();
}
}