在ng服务中显示一些警告。
在“ @ angular / core”导出中未找到导出“ΔdefineInjectable”
在'@ angular / core'中找不到'Δinject'
删除了@ angular / cdk和@ angular / material。
我的package.json
"dependencies": {
"@angular/animations": "github:angular/animations-builds",
"@angular/cdk": "github:angular/cdk-builds",
"@angular/common": "~7.2.0",
"@angular/compiler": "~7.2.0",
"@angular/core": "~7.2.0",
"@angular/forms": "~7.2.0",
"@angular/material": "github:angular/material2-builds",
"@angular/platform-browser": "~7.2.0",
"@angular/platform-browser-dynamic": "~7.2.0",
"@angular/router": "~7.2.0",
"@fortawesome/angular-fontawesome": "^0.3.0",
"@fortawesome/fontawesome-svg-core": "^1.2.17",
"@fortawesome/free-solid-svg-icons": "^5.8.1",
"@ng-select/ng-select": "2.16.4",
"@types/auth0-js": "^8.11.11",
"angular-datatables": "^7.0.0"
}
在ng服务上,出现这些错误。
./ node_modules/@angular/cdk/esm5/observers.es5.js中的警告38:65-82 “在'@ angular / core'中找不到导出'ΔdefineInjectable'
./ node_modules/@angular/cdk/esm5/observers.es5.js中的警告195:57-74 “在'@ angular / core'中找不到导出'ΔdefineInjectable'
警告./node_modules/@angular/cdk/esm5/collections.es5.js 524:67-84 “在'@ angular / core'中找不到导出'ΔdefineInjectable'
./ node_modules/@angular/cdk/esm5/overlay.es5.js 527:168-175中的警告 “在'@ angular / core'中找不到导出'Δinject'
./ node_modules/@angular/cdk/esm5/overlay.es5.js 527:195-202中的警告 “在'@ angular / core'中找不到导出'Δinject'
./ node_modules/@angular/cdk/esm5/overlay.es5.js 527:219-226中的警告 “在'@ angular / core'中找不到导出'Δinject'
答案 0 :(得分:0)
返回到v7版本:
npm install @angular/flex-layout@7.0.0-beta.24
beta.25
用于Angular 8,尽管它本身没有什么问题,所以我建议您稍等一下,直到Angular 8退出RC。