0
我在我的角度項目中運行Karma Start
時遇到了一些錯誤。Karma Angular - 找不到名稱'X'
所有的錯誤說: '找不到名字的Blob', '無法找到名字的KeyboardEvent', '找不到名稱HTML元素' 等
我tsconfig.json:
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"es2016",
"dom"
],
"typeRoots": [
"./node_modules/@types/"
],
"types": [
"jasmine",
"node",
"core-js"
]
}
}
幫助!