You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when a package has a "bundledDependencies": true (valid value by the NPM documentation) the command lerna bootstrap fails.
Expected Behavior
running lerna bootstrap should work as expected and install packages.
Current Behavior
exit 1 with console error: TypeError: collection is not iterable
Possible Solution
check if the value is an array before trying to iterate it: #2960
Steps to Reproduce (for bugs)
create a monorepo project
run lerna bootstrap - will work as expected.
add "bundledDependencies": true to one of the packages in the monorepo.
run again lerna bootstrap.
error will be shown.
Context
by the NPM documentation, "bundledDependencies" can be either an array or a boolean.
the code at lerna took for granted that if this value exists - it's an array. that is a wrong assumption.
The text was updated successfully, but these errors were encountered:
when a package has a
"bundledDependencies": true
(valid value by the NPM documentation) the commandlerna bootstrap
fails.Expected Behavior
running
lerna bootstrap
should work as expected and install packages.Current Behavior
exit 1 with console error:
TypeError: collection is not iterable
Possible Solution
check if the value is an array before trying to iterate it:
#2960
Steps to Reproduce (for bugs)
lerna bootstrap
- will work as expected."bundledDependencies": true
to one of the packages in the monorepo.lerna bootstrap
.Context
by the NPM documentation, "bundledDependencies" can be either an array or a boolean.
the code at lerna took for granted that if this value exists - it's an array. that is a wrong assumption.
The text was updated successfully, but these errors were encountered: