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

Need to install @types/bl separate to install the driver from master

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: Shell
    • Labels:
      None

      Description

      Hello!

      I have in my package.json 

       

      "mongodb": "github:mongodb/node-mongodb-native#master",
      

      But when I try to compile our typescript I get 

       

      node_modules/mongodb/mongodb.d.ts(3,29): error TS7016: Could not find a declaration file for module 'bl'. '/Users/anna/mongosh/packages/service-provider-core/node_modules/bl/bl.js' implicitly has an 'any' type.
       Try `npm install @types/bl` if it exists or add a new declaration (.d.ts) file containing `declare module 'bl';`
      

       

      Installing types/bl manually does fix the issue

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matt.broadstone Matt Broadstone
              Reporter:
              anna.herlihy Anna Herlihy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: