Closed merceyz closed 3 years ago
@NiklasMerz can this be fixed? This is annoying to add underscore dependency manually when using cordova-ios
I'm genuinely surprised how long this went unnoticed. Underscore usage have been in the framework for years, and as far as I can tell it was never added as a dependency.
Thanks for your contribution @merceyz
Hoisting does wonders in hiding these sorts of problems, Yarn PnP is strict on these and threw an error immediately when running yarn cordova prepare ios
Platforms affected
iOS
Motivation and Context
cordova-ios
depends onunderscore
but doesn't declare it as a dependency https://github.com/apache/cordova-ios/blob/048c1cace886d950860236adb893a860dfbd3503/bin/templates/scripts/cordova/lib/projectFile.js#L22Description
Added
underscore
as a dependencyTesting
Ran
cordova prepare ios
under a strict dependency environmentChecklist
(platform)
if this change only applies to one platform (e.g.(android)
)