在我将 ngx-perfect-scrollbar 从 V7.2 升级到 V10.1.1
角度版本:angular/compiler-cli@7.2.15
节点版本:v14.17.0
ngx-perfect-scrollbar:10.1.1
tsconfig.json:
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"ES2018",
"es5",
"ScriptHost",
"dom"
],
"paths": {
"ngx-perfect-scrollbar": [
"lib"
]
}
}
}
索引页中的错误行:
const PERFECT_SCROLLBAR_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["InjectionToken"]('PERFECT_SCROLLBAR_CONFIG');
class Geometry {
constructor(x, y, w, h) {
this.x = x;
this.y = y;
this.w = w;
this.h = h;
}
}
class Position {
constructor(x, y) {
this.x = x;
this.y = y;
}
}
为什么我已经将目标设置为“es5”,但是当使用 ie11 打开时我看到了“class Geometry..”