-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: 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`.
- links to