Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4093

Investigate NODE-4092 - compile errors with v4.4.x under typescript 3.9.x and node 14

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Not Needed

      NODE-4092 Description

      What problem are you facing?

      Unable to build a package depending on mongodb 4.4.x using ts 3.9.

      Notice a huge number of errors in node_modules/mongodb/mongodb.ts34.d.ts (see attached errors.txt for full output).

      With mongodb 4.2.x, I can suppress these errors via "skipLibCheck": true in tsconfig.json compilerOptions but that no longer seems to work with 4.4.

      The errors also go away by upgrading to Typescript 4.x, but I'm unable to do that at the moment.

      If the library is no longer compatible with ts 3.9.x, please document it as such

      What driver and relevant dependency versions are you using?

      node 14.19.x (also seems to fail under 16.x)

      typescript 3.9.10

      mongodb 4.4.1

      Steps to reproduce?

      Try to build a module depending on mongodb 4.4.x using typescript 3.9

       

        1. errors.txt
          29 kB
          PM Bot

            Assignee:
            daria.pardue@mongodb.com Daria Pardue
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: