Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Use declared lodash dependencies. Resolve build failures for dependen… #1366
…t projects using Yarn PnP.
Reasons for making this change
Dependent projects using react-jsonschema-form and Yarn PnP fail to build with the following exception:
The important parts of this are:
Documentation on troubleshooting this error message from Yarn PnP is provided here:
Ultimately, the situation boils down to this:
Test is failing at Form_test.js "unused form values should be omitted".
Test passes if lodash is added as a dependency to the project and lodash/pick is used in the import in Form.js
Test fails if lodash.pick is used as the dependency, and lodash.pick is used in the import.