TypeError: _.includes is not a function, Angular G

2019-08-08 15:17发布

问题:

While integrating google maps using angular-google-maps 2.3.1 with lodash 4.3.0 (Custom Build) , I am getting this error.

From some links I got to know they have some issues in latest version but I am not able to find the exact reason behind this issue.

回答1:

As I post in a comment, I had the same problem and I solved it downgrading lodash until version 3.8.0.

Not sure why version 4.x doesn't work properly at the moment.