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

Webpack fails due to missing mongodb-client-encryption

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.11, 4.0.1
    • Affects Version/s: 3.6.4, 3.6.5, 3.6.6
    • Component/s: None
    • 1
    • Not Needed

      When updating to Mongodb v3.6.4 or greater this error is thrown when compiling with webpack. 

      mongodb-client-encryption has never needed to be installed previously and furthermore, when attempting to install that package it throws a Visual Studio 2015 is required error.

       

      ERROR in ./node_modules/mongodb/lib/encrypter.js 7:2-46
      Module not found: Error: Can't resolve 'mongodb-client-encryption' in 'C:\Users\Dave\Development\API\api-estates-module\node_modules\mongodb\lib'
      resolve 'mongodb-client-encryption' in 'C:\Users\Dave\Development\API\api-estates-module\node_modules\mongodb\lib'
      Parsed request is a module
      using description file: C:\Users\Dave\Development\API\api-estates-module\node_modules\mongodb\package.json (relative path: ./lib)
      resolve as module
      C:\Users\Dave\Development\API\api-estates-module\node_modules\mongodb\lib\node_modules doesn't exist or is not a directory
      C:\Users\Dave\Development\API\api-estates-module\node_modules\mongodb\node_modules doesn't exist or is not a directory
      C:\Users\Dave\Development\API\api-estates-module\node_modules\node_modules doesn't exist or is not a directory
      looking for modules in C:\Users\Dave\Development\API\api-estates-module\node_modules
      single file module
      using description file: C:\Users\Dave\Development\API\api-estates-module\package.json (relative path: ./node_modules/mongodb-client-encryption)
      no extension
      C:\Users\Dave\Development\API\api-estates-module\node_modules\mongodb-client-encryption doesn't exist
      .tsx
      C:\Users\Dave\Development\API\api-estates-module\node_modules\mongodb-client-encryption.tsx doesn't exist
      .ts
      C:\Users\Dave\Development\API\api-estates-module\node_modules\mongodb-client-encryption.ts doesn't exist
      .js
      C:\Users\Dave\Development\API\api-estates-module\node_modules\mongodb-client-encryption.js doesn't exist
      .html
      C:\Users\Dave\Development\API\api-estates-module\node_modules\mongodb-client-encryption.html doesn't exist
      C:\Users\Dave\Development\API\api-estates-module\node_modules\mongodb-client-encryption doesn't exist
      C:\Users\Dave\Development\API\node_modules doesn't exist or is not a directory
      C:\Users\Dave\Development\node_modules doesn't exist or is not a directory
      C:\Users\Dave\node_modules doesn't exist or is not a directory
      C:\Users\node_modules doesn't exist or is not a directory
      C:\node_modules doesn't exist or is not a directory
      @ ./node_modules/mongodb/lib/mongo_client.js 194:41-63
      @ ./node_modules/mongodb/index.js 8:16-53 22:22-51
      @ ./src/functions/estate-children/estate-children.handler.ts 5:18-36

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            dave.potts@screach.com Dave Potts
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: