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

mongodb@3.6.12 release breaks Yarn v2 PnP

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Release of `mongodb@3.6.12` in NPM included a change where we started doing `require_optional('<package>/package.json')`, where `require_optional` is the `optional-require` package. There is a bug in the `optional-require` package for Yarn Berry Plug'n'Play, where it does not correctly handle the `/package.json` subpath; as a result, it throws an error rather than gracefully return `undefined`. This is a breaking change from `mongodb@3.6.11`.

      I have opened a pull request for `optional-require` to fix the bug. Once that PR is accepted, there should be no action required for `mongodb`, besides optionally upgrading the dependency on `optional-require`.

            Assignee:
            daria.pardue@mongodb.com Daria Pardue
            Reporter:
            marc@unqork.com Marc Hassan
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: