Sunday, 30 April 2017

throw new TSError(diagnosticList)

If you run gulp, you will get the following error message. I do not know what's wrong.

$ gulp build.dev
[01:41:15] Requiring external module ts-node/register

C:\project\node_modules\ts-node\src\index.ts:255
          throw new TSError(diagnosticList)
                ^
TSError: ⨯ Unable to compile TypeScript
Cannot find type definition file for 'express'. (2688)
Cannot find type definition file for 'jasmine'. (2688)
Cannot find type definition file for 'protractor'. (2688)
Cannot find type definition file for 'systemjs'. (2688)
    at getOutput (C:\project\node_modules\ts-node\src\index.ts:255:17)
    at C:\project\node_modules\ts-node\src\index.ts:264:16
    at Object.compile (C:\project\node_modules\ts-node\src\index.ts:425:17)
    at loader (C:\project\node_modules\ts-node\src\index.ts:286:33)
    at Object.require.extensions.(anonymous function) [as .ts] (C:\project\node_modules\ts-node\src\index.ts:303:14)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)



via skj

No comments:

Post a Comment