找不到模块“ SubSink”

时间:2019-08-11 22:02:15

标签: angular npm rxjs

我在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

  

我该如何解决?

0 个答案:

没有答案