angular-seed-advanced: error TS2304: Cannot find name 'UnderscoreStatic'

305 Views Asked by At

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

There are 1 best solutions below

0
On

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.