-1
throw new TSError(formatDiagnostics(diagnosticList, cwd, ts, lineOffset))
^
TSError: ⨯ Unable to compile TypeScript
Cannot find type definition file for 'jasmine'. (2688)
Cannot find type definition file for 'node'. (2688)
api/public/reports/api-report.spec.ts (1,46): Cannot find module './api-report'. (2307)
...
20 lines of different modules not found
src/api/public/reports/api-report.spec.ts (134,17): Cannot find name 'expect'. (2304)
^以上错误看了很多,重新安装了node,npm,nvm,jasmine。看着我的代码。不知道它可能是什么。不能编译打字稿Ubuntu的
它可能会导致你到一个更好的地方:)我发现使用[打字稿一起使用webpack](https://www.typescriptlang.org/docs/handbook/integrating-with-build-tools.html# webpack)一个更愉快的体验:) 编辑: 你确实需要为你的依赖做'npm i -D @ types/[module]' –