Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-293

Fix all the webpack compilation warnings

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Tech debt
    • None
    • Not Needed

      When we pulled in bson-transpilers one of the warnings was the only hint we had at why things didn't work at all. Which means some more of those ones that are identical except for the packages involved are probably problematic?

      Having that many warnings also makes it hard to spot the real problems because literally any of them could be the thing that's causing it.

      See:

      WARNING in ./node_modules/mongodb3/lib/core/index.js 4:53-60
      Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
       @ ./node_modules/mongodb-connection-model/lib/model.js
       @ ./src/connectionController.ts
       @ ./src/mdbExtensionController.ts
       @ ./src/extension.ts
      WARNING in ./node_modules/mongodb3/lib/core/utils.js 4:52-59
      Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
       @ ./node_modules/mongodb3/lib/core/index.js
       @ ./node_modules/mongodb-connection-model/lib/model.js
       @ ./src/connectionController.ts
       @ ./src/mdbExtensionController.ts
       @ ./src/extension.ts
      WARNING in ./node_modules/mongodb3/lib/core/connection/utils.js 3:53-60
      Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
       @ ./node_modules/mongodb3/lib/core/sessions.js
       @ ./node_modules/mongodb3/lib/core/index.js
       @ ./node_modules/mongodb-connection-model/lib/model.js
       @ ./src/connectionController.ts
       @ ./src/mdbExtensionController.ts
       @ ./src/extension.ts
      WARNING in ./node_modules/mongodb/lib/bson.js
      Module not found: Error: Can't resolve 'bson-ext' in '/Users/leroux.bodenstein/mongo/vscode/node_modules/mongodb/lib'
       @ ./node_modules/mongodb/lib/bson.js
       @ ./node_modules/mongodb/lib/index.js
       @ ./node_modules/mongodb-connection-model/lib/model.js
       @ ./src/connectionController.ts
       @ ./src/mdbExtensionController.ts
       @ ./src/extension.ts
      WARNING in ./node_modules/ws/lib/buffer-util.js
      Module not found: Error: Can't resolve 'bufferutil' in '/Users/leroux.bodenstein/mongo/vscode/node_modules/ws/lib'
       @ ./node_modules/ws/lib/buffer-util.js
       @ ./node_modules/ws/lib/websocket.js
       @ ./node_modules/ws/index.js
       @ ./src/language/languageServerController.ts
       @ ./src/language/index.ts
       @ ./src/mdbExtensionController.ts
       @ ./src/extension.ts
      WARNING in ./node_modules/mongodb/lib/deps.js
      Module not found: Error: Can't resolve 'snappy' in '/Users/leroux.bodenstein/mongo/vscode/node_modules/mongodb/lib'
       @ ./node_modules/mongodb/lib/deps.js
       @ ./node_modules/mongodb/lib/index.js
       @ ./node_modules/mongodb-connection-model/lib/model.js
       @ ./src/connectionController.ts
       @ ./src/mdbExtensionController.ts
       @ ./src/extension.ts
      WARNING in ./node_modules/ws/lib/validation.js
      Module not found: Error: Can't resolve 'utf-8-validate' in '/Users/leroux.bodenstein/mongo/vscode/node_modules/ws/lib'
       @ ./node_modules/ws/lib/validation.js
       @ ./node_modules/ws/lib/sender.js
       @ ./node_modules/ws/index.js
       @ ./src/language/languageServerController.ts
       @ ./src/language/index.ts
       @ ./src/mdbExtensionController.ts
       @ ./src/extension.ts
      WARNING in ./node_modules/@babel/core/lib/config/files/configuration.js 163:150-157
      Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
       @ ./node_modules/@babel/core/lib/config/files/index.js
       @ ./node_modules/@babel/core/lib/index.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/async-writer-babel.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/index.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/open-context-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/electron-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/index.js
       @ ./src/language/worker.ts
      WARNING in ./node_modules/@babel/core/lib/config/files/plugins.js 102:142-149
      Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
       @ ./node_modules/@babel/core/lib/config/files/index.js
       @ ./node_modules/@babel/core/lib/index.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/async-writer-babel.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/index.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/open-context-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/electron-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/index.js
       @ ./src/language/worker.ts
      WARNING in ./node_modules/@babel/core/lib/config/files/plugins.js 121:139-146
      Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
       @ ./node_modules/@babel/core/lib/config/files/index.js
       @ ./node_modules/@babel/core/lib/index.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/async-writer-babel.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/index.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/open-context-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/electron-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/index.js
       @ ./src/language/worker.ts
      WARNING in ./node_modules/@babel/core/lib/config/files/plugins.js 144:137-144
      Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
       @ ./node_modules/@babel/core/lib/config/files/index.js
       @ ./node_modules/@babel/core/lib/index.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/async-writer-babel.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/index.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/open-context-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/electron-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/index.js
       @ ./src/language/worker.ts
      WARNING in ./node_modules/@babel/core/lib/config/files/plugins.js 167:137-144
      Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
       @ ./node_modules/@babel/core/lib/config/files/index.js
       @ ./node_modules/@babel/core/lib/index.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/async-writer-babel.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/index.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/open-context-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/electron-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/index.js
       @ ./src/language/worker.ts
      WARNING in ./node_modules/browserslist/node.js 164:26-33
      Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
       @ ./node_modules/browserslist/index.js
       @ ./node_modules/@babel/helper-compilation-targets/lib/index.js
       @ ./node_modules/@babel/core/lib/config/resolve-targets.js
       @ ./node_modules/@babel/core/lib/config/partial.js
       @ ./node_modules/@babel/core/lib/config/index.js
       @ ./node_modules/@babel/core/lib/index.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/async-writer-babel.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/index.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/open-context-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/electron-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/index.js
       @ ./src/language/worker.ts
      WARNING in ./node_modules/browserslist/node.js 185:6-13
      Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
       @ ./node_modules/browserslist/index.js
       @ ./node_modules/@babel/helper-compilation-targets/lib/index.js
       @ ./node_modules/@babel/core/lib/config/resolve-targets.js
       @ ./node_modules/@babel/core/lib/config/partial.js
       @ ./node_modules/@babel/core/lib/config/index.js
       @ ./node_modules/@babel/core/lib/index.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/async-writer-babel.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/index.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/open-context-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/electron-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/index.js
       @ ./src/language/worker.ts
      WARNING in ./node_modules/@babel/core/lib/config/files/module-types.js 85:17-34
      Critical dependency: the request of a dependency is an expression
       @ ./node_modules/@babel/core/lib/config/files/plugins.js
       @ ./node_modules/@babel/core/lib/config/files/index.js
       @ ./node_modules/@babel/core/lib/index.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/async-writer-babel.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/index.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/open-context-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/electron-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/index.js
       @ ./src/language/worker.ts
      WARNING in ./node_modules/@babel/core/lib/config/files/import.js 9:9-25
      Critical dependency: the request of a dependency is an expression
       @ ./node_modules/@babel/core/lib/config/files/module-types.js
       @ ./node_modules/@babel/core/lib/config/files/plugins.js
       @ ./node_modules/@babel/core/lib/config/files/index.js
       @ ./node_modules/@babel/core/lib/index.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/async-writer-babel.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/index.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/open-context-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/electron-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/index.js
       @ ./src/language/worker.ts
      WARNING in ./node_modules/browserslist/node.js 164:18-66
      Critical dependency: the request of a dependency is an expression
       @ ./node_modules/browserslist/index.js
       @ ./node_modules/@babel/helper-compilation-targets/lib/index.js
       @ ./node_modules/@babel/core/lib/config/resolve-targets.js
       @ ./node_modules/@babel/core/lib/config/partial.js
       @ ./node_modules/@babel/core/lib/config/index.js
       @ ./node_modules/@babel/core/lib/index.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/async-writer-babel.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/index.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/open-context-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/electron-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/index.js
       @ ./src/language/worker.ts
      WARNING in ./node_modules/browserslist/node.js 184:16-189:5
      Critical dependency: the request of a dependency is an expression
       @ ./node_modules/browserslist/index.js
       @ ./node_modules/@babel/helper-compilation-targets/lib/index.js
       @ ./node_modules/@babel/core/lib/config/resolve-targets.js
       @ ./node_modules/@babel/core/lib/config/partial.js
       @ ./node_modules/@babel/core/lib/config/index.js
       @ ./node_modules/@babel/core/lib/index.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/async-writer-babel.js
       @ ./node_modules/@mongosh/async-rewriter2/lib/index.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js
       @ ./node_modules/@mongosh/shell-evaluator/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/open-context-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-core/lib/index.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/electron-runtime.js
       @ ./node_modules/@mongosh/browser-runtime-electron/lib/index.js
       @ ./src/language/worker.ts
      WARNING in ./node_modules/mongodb/lib/bson.js
      Module not found: Error: Can't resolve 'bson-ext' in '/Users/leroux.bodenstein/mongo/vscode/node_modules/mongodb/lib'
       @ ./node_modules/mongodb/lib/bson.js
       @ ./node_modules/mongodb/lib/index.js
       @ ./node_modules/@mongosh/service-provider-server/lib/cli-service-provider.js
       @ ./node_modules/@mongosh/service-provider-server/lib/index.js
       @ ./src/language/worker.ts
      WARNING in ./node_modules/mongodb/lib/deps.js
      Module not found: Error: Can't resolve 'snappy' in '/Users/leroux.bodenstein/mongo/vscode/node_modules/mongodb/lib'
       @ ./node_modules/mongodb/lib/deps.js
       @ ./node_modules/mongodb/lib/index.js
       @ ./node_modules/@mongosh/service-provider-server/lib/cli-service-provider.js
       @ ./node_modules/@mongosh/service-provider-server/lib/index.js
       @ ./src/language/worker.ts
      
      

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: