-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]' –