0

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);
            }
          })();
    }
}
  • Does this answer your question? [Module '"http"' has no default export. While using typescript And Node](https://stackoverflow.com/questions/66810369/module-http-has-no-default-export-while-using-typescript-and-node) – dota2pro Apr 28 '21 at 08:18
  • I would suggest asking in https://github.com/jlguenego/node-expose-sspi/issues that you will more help form package maintainers for these type of errors – Rebai Ahmed Apr 28 '21 at 08:24
  • no, my question is that this error occurred in node_modules/node-expose-sspi/dist/sso/client.d.ts; so I can't find this reason at all. – Terry Dong Apr 28 '21 at 09:24

0 Answers0