Я установил следующие параметры в tsconfig. json Я установил для aot значение true. Я попытался запустить с aot с ложным.
"angularCompilerOptions": {
"enableIvy": true,
"allowEmptyCodegenFiles": true }
, но когда npm запустить запуск, я получаю ошибку
ОШИБКА в Не удается прочитать свойство 'opensWith' из неопределенного
И я попытался скомпилировать false для плюща. Я скомпилировал, но в браузере я получаю сообщение об ошибке «не могу прочитать идентификатор свойства undefined»
как мне успешно скомпилировать? Что мне не хватает?
пакет. json is
{
"name": "MyApp",
"version": "4.3.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"ng": "ng",
"start": "ng serve --host 0.0.0.0 --port 4200",
"hmr": "ng serve --host 0.0.0.0 --port 4200 --hmr",
"test": "ng test",
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "protractor",
"lint": "tslint --force --project src/tsconfig.json src/**/*.ts -t verbose",
"postinstall": "ivy-ngcc --properties main"
},
"private": true,
"dependencies": {
"@angular/animations": "^8.2.2",
"@angular/cdk": "^8.1.3",
"@angular/common": "^8.2.2",
"@angular/compiler": "^8.2.2",
"@angular/core": "^8.2.2",
"@angular/flex-layout": "^8.0.0-beta.27",
"@angular/forms": "^8.2.2",
"@angular/http": "^7.2.16",
"@angular/material": "^8.1.3",
"@angular/material-moment-adapter": "^8.1.3",
"@angular/platform-browser": "^8.2.2",
"@angular/platform-browser-dynamic": "^8.2.2",
"@angular/router": "^8.2.2",
"@aspnet/signalr": "^1.1.4",
"@datorama/akita": "^4.9.7",
"@datorama/akita-ngdevtools": "^3.0.2",
"@ng-bootstrap/ng-bootstrap": "^5.1.0",
"@types/bootstrap": "^4.3.1",
"@types/jquery": "^3.3.31",
"@types/jquery.blockui": "0.0.28",
"@types/jquery.validation": "^1.16.6",
"@types/lodash": "^4.14.137",
"@types/moment": "^2.13.0",
"@types/moment-timezone": "^0.5.12",
"@types/toastr": "^2.1.37",
"abp-ng2-module": "^4.0.0",
"abp-web-resources": "^3.8.5",
"angular-split": "^3.0.2",
"animate.css": "^3.7.2",
"block-ui": "^2.70.1",
"bootstrap": "^4.3.1",
"bootstrap-select": "^1.12.2",
"chart.js": "^2.8.0",
"core-js": "^3.0.0",
"famfamfam-flags": "^1.0.0",
"file-saver": "^2.0.2",
"flot": "^0.8.0-alpha",
"font-awesome": "^4.7.0",
"hammerjs": "^2.0.8",
"html2canvas": "^1.0.0-rc.3",
"jquery": "^3.4.1",
"jquery-countto": "^1.2.0",
"jquery-migrate": "^3.1.0",
"jquery-slimscroll": "^1.3.8",
"jquery-sparkline": "^2.4.0",
"js-cookie": "^2.2.1",
"jspdf": "^1.5.3",
"lodash": "^4.17.15",
"moment": "^2.24.0",
"moment-timezone": "^0.5.26",
"morris.js": "github:morrisjs/morris.js",
"ngx-bootstrap": "^5.1.1",
"ngx-device-detector": "^1.3.9",
"ngx-pagination": "^4.1.0",
"ngx-quill": "^7.2.0",
"node-sass": "^4.12.0",
"node-waves": "^0.7.6",
"open-iconic": "^1.1.1",
"popper.js": "^1.15.0",
"primeicons": "^2.0.0",
"primeng": "^8.0.4",
"push.js": "^1.0.12",
"quill": "^1.3.6",
"raphael": "^2.3.0",
"rxjs": "^6.5.2",
"sass": "^1.22.10",
"simple-line-icons": "^2.4.1",
"spin.js": "^2.3.2",
"stacktrace-js": "^2.0.1",
"sweetalert": "^2.1.2",
"toastr": "^2.1.4",
"ts-helpers": "^1.1.2",
"typescript": "^3.5.3",
"web-animations-js": "^2.3.2",
"zone.js": "^0.9.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.802.2",
"@angular/cli": "^8.2.2",
"@angular/compiler-cli": "^8.2.2",
"@angularclass/hmr": "^2.1.3",
"@types/jasmine": "^3.4.0",
"@types/node": "^12.7.2",
"codelyzer": "^5.1.0",
"jasmine-core": "^3.4.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "^4.2.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^2.0.0",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"nswag": "^13.0.5",
"protractor": "^5.4.2",
"ts-node": "^8.3.0",
"tslint": "^5.18.0",
"webpack-bundle-analyzer": "^3.4.1"
}
}