Forum Discussion
callum
Helper II
9 years ago"Cannot find name 'object'" when installing lodash
Hi, I had a working visual that I wanted to incorporate lodash into. The only change I made was running npm install --save lodash @types/lodash and now my TypeScript fails to compile, with the ...
- 9 years ago
Hello callum
You're right. The @types/[email protected] is for TypeScript 2.5, but Power BI Visuals Tools (pbiviz) use TypeScript 2.1.5.
Please use @types/lodash@4.14.56 instead.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
v-viig
Community Champion
9 years agoHello callum
You're right. The @types/[email protected] is for TypeScript 2.5, but Power BI Visuals Tools (pbiviz) use TypeScript 2.1.5.
Please use @types/lodash@4.14.56 instead.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals