0
votes

I'm trying to integrate Everlive SDK with Angular seed advanced. The SDK is version 1.9.1. It should work seamlessly after adding the typings from the npm package, but when trying to build the project there is that error:

/node_modules/everlive-sdk/dist/declarations/everlive/Everlive.d.ts(88,12): error TS2304: Cannot find name 'UnderscoreStatic'.

I have tried installing Underscore typings both from DefinetlyTyped repo and from EverliveSDK package as well.

Is there any chance this is problem with the config for TypeScript compiler? Any suggestions what it might be at all?

1
Sounds like typings not installed. Check for a typings folder in your project. - Prashant Pokhriyal
Yep, it's there. I have Underscore installed there from Everlive SDK distribution. - viktorstaikov
Tried npm install --save @types/underscore but the error persists. I suspect that it might be because of the tsconfig. Is it possible to not include the typings? - viktorstaikov

1 Answers

1
votes

After some debugging I've found the issue. The seed was using Gulp and in the tasks was hardcoded to search for typings not in "./typings", but instead in some other random sub-directory. After changing the path, it worked.