Webstorm 无法识别我的 ngrx/effect

use*_*257 5 ngrx-effects angular

该效果正常运行,但 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})))
        );
      })
    ));
Run Code Online (Sandbox Code Playgroud)

错误信息是:

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>>>) 
Run Code Online (Sandbox Code Playgroud)

有谁知道这意味着什么以及如何解决它?

在此输入图像描述

小智 2

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