Skip to content

error TS1192: Module '"http"' has no default export, esModuleInterop #751

Closed
@arshad-akra

Description

@arshad-akra
  • im getting these errors directly upgrading from 0.15.1 to 0.16.1
  • this is similar to This issue on apollo-server
node_modules/@kubernetes/client-node/dist/gen/api/wellKnownApi.d.ts:13:8 - error TS1192: Module '"http"' has no default export.

13 import http from 'http';

node_modules/@kubernetes/client-node/dist/gen/model/models.d.ts:2:8 - error TS1259: Module '"/home/arshad/Code/uphabit/backend/node_modules/@types/request/index"' can only be default-imported using the 'esModuleInterop' flag

2 import localVarRequest from 'request';

attempted fixes

  • setting esModuleInterop: true is throwing 300 errors at all old import * as .... and changing all those is not feasible

  • is there anything else that needs to be set or any other way to overcome this ?
    Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions