Webstorm is complaing about createEffect function argument. #3752
Unanswered
AhmedBenyahia
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Do you have a shareable reproduction @AhmedBenyahia ? I suppose that there's something wrong with the code, but I'm not sure. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have this code in my application that is highlighted in red. I could not resolve it without adding a type to the arrow function.
I am not sure if this is a problem with ngRx or Webstorm. I tried common solutions like deleting node_module.
My Ngrx dependencies
The error displayed
Argument type () => Observable<TypedAction<string> | ({searchResults: RpmSearchResults} & TypedAction<"[RPM] Search eUICC records success">)> is not assignable to parameter type () => (Observable<TypedAction<string> | ({searchResults: RpmSearchResults} & TypedAction<"[RPM] Search eUICC records success">)> & ConditionallyDisallowActionCreator<DispatchType<EffectConfig>, Observable<TypedAction<string> | ({searchResults: RpmSearchResults} & TypedAction<"[RPM] Search eUICC records success">)>>) Type Observable<TypedAction<string> | ({searchResults: RpmSearchResults} & TypedAction<"[RPM] Search eUICC records success">)> is not assignable to type Observable<TypedAction<string> | ({searchResults: RpmSearchResults} & TypedAction<"[RPM] Search eUICC records success">)> & ConditionallyDisallowActionCreator<DispatchType<EffectConfig>, Observable<TypedAction<string> | ({searchResults: RpmSearchResults} & TypedAction<"[RPM] Search eUICC records success">)>> Type Observable<TypedAction<string> | ({searchResults: RpmSearchResults} & TypedAction<"[RPM] Search eUICC records success">)> is not assignable to type Observable<TypedAction<string> | ({searchResults: RpmSearchResults} & TypedAction<"[RPM] Search eUICC records success">)> & "ActionCreator cannot be dispatched. Did you forget to call the action creator function?"
Beta Was this translation helpful? Give feedback.
All reactions