我在Angular应用中安装并集成了 subsink 。
https://www.npmjs.com/package/subsink
打包JSON文件:
"simple-line-icons": "^2.4.1",
"sortablejs": "^1.10.0-rc3",
"subsink": "^1.0.0",
"zone.js": "^0.9.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.802.0",
"@angular-devkit/build-ng-packagr": "~0.801.0",
"@angular/cli
我现在开始收到此错误
Compiling TypeScript sources through ngc
ERROR: projects/race-suite-ngx-essentials/src/@services/user.service.ts(8,25): error TS2307: Cannot find module 'SubSink'.
An unhandled exception occurred: projects/race-suite-ngx-essentials/src/@services/user.service.ts(8,25): error TS2307: Cannot find module 'SubSink'.
See "/tmp/ng-oI8Jmh/angular-errors.log" for further details.
我的导入看起来像
import { take } from "rxjs/operators";
import { SubSink } from "SubSink";
import { HttpCustomParams } from "./../@tool-interfaces/tool-interfaces";
我正在使用Angular 8和Node 10.15.3
我该如何解决?