Skip to content

Conversation

gburgett
Copy link

@gburgett gburgett commented May 21, 2017

I installed broken-link-checker in my hubot, which uses bhttp, which requires "lodash": "^2.4.1". Since hubot-rss-reader requires "lodash": "*", this resolved to version 2.4.2 of lodash. Unfortunately _.includes was not introduced until lodash 3.0.

With version 2.4.2 installed, hubot-rss-reader spits out "[ERROR] TypeError: _.includes is not a function".

I changed the package.json to require "lodash": ">=3". Now yarn is resolving this to 4.17.4`, and I no longer get the type error.

lodash@>=3, lodash@^4.14.0:
  version "4.17.4"
  resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"

  committed in lodash 82b9a0c949761ba65ff897f218b0fff5a0ad72cd and released in lodash 3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant