Webstorm 无法识别我的 ngrx/effect

Webstorm does not recognize my ngrx/effect

这个效果可以正常使用,但是webstorm好像无法识别。

  sendUserName$ = createEffect(() =>
    this.actions$.pipe(
      ofType(sendUserName),
      map((action) => {
        return this.usernameService.SearchUserName(action.username).pipe(
          map((result) => of(sendUserNameSuccess({found: result.found}))),
          catchError((error: HttpErrorResponse) => of(sendUserNameFail({error: error.message})))
        );
      })
    ));

错误信息是:

Argument type () => Observable<Observable<({error: string} & TypedAction<"[app] Send user name failed">) | Observable<{found: boolean} & TypedAction<"[app] Send user name success">>>> is not assignable to parameter type () => (EffectResult<ObservableType<DispatchType<EffectConfig>, OT>> & ConditionallyDisallowActionCreator<DispatchType<EffectConfig>, EffectResult<ObservableType<DispatchType<EffectConfig>, OT>>>) 

有人知道这是什么意思以及如何解决吗?

我遇到了同样的问题,删除 node_modules 并重新安装所有节点包为我解决了这个问题。