Forum Discussion

callum's avatar
callum
Icon for Helper II rankHelper II
9 years ago
Solved

"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 ...
  • v-viig's avatar
    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

    [email protected]