小编Ric*_*Liu的帖子

错误:TSError:⨯无法编译TypeScript

我正面临着这个问题:

我的项目是建立在Angular4上的打字稿,e2e测试与量角器和业力.

Travis-ci有这个错误:

[03:34:54] E/launcher - Error: TSError: ? Unable to compile TypeScript
Cannot find type definition file for 'jasmine'. (2688)
Cannot find type definition file for 'node'. (2688)
e2e/app.e2e-spec.ts (1,32): Cannot find module './app.po'. (2307)
e2e/app.e2e-spec.ts (4,1): Cannot find name 'describe'. (2304)
e2e/app.e2e-spec.ts (7,3): Cannot find name 'beforeEach'. (2304)
e2e/app.e2e-spec.ts (11,3): Cannot find name 'it'. (2304)
e2e/app.e2e-spec.ts (13,5): Cannot find name 'expect'. (2304)

The command "ng e2e" exited with 4.
Run Code Online (Sandbox Code Playgroud)

我的tsconfig.json:

{
  "compileOnSave": false,
  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "baseUrl": …
Run Code Online (Sandbox Code Playgroud)

node.js travis-ci typescript protractor angular

13
推荐指数
2
解决办法
2万
查看次数

标签 统计

angular ×1

node.js ×1

protractor ×1

travis-ci ×1

typescript ×1