You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The globally declared Observable interface is not compatible with rxjs/Observable. This causes the following error when declaring variables of type Observable:
error "Property '['@@observable']' is missing in type rxjs/Observable
While this can be resolved by manually adding the import. It breaks editor auto import functionality as the editor thinks Observable is already a known type. This is a major pain as rxjs/Observable is used in nearly everywhere (angular app).
We are currently using patch-package @apollo/client@3.3.11 to completely remove the global declaration. This re-enables normal editor flow without us noticing any side effects.
While this is an issue that is angular related its not something that can be solved in the apollo-angular package alone. Hence filing this issue here.
We currently assume that the current versions of rxjs/Observable is simply not compatible with the global declaration anymore.
The globally declared
Observable
interface is not compatible withrxjs/Observable
. This causes the following error when declaring variables of typeObservable
:While this can be resolved by manually adding the import. It breaks editor auto import functionality as the editor thinks
Observable
is already a known type. This is a major pain asrxjs/Observable
is used in nearly everywhere (angular app).We are currently using patch-package
@apollo/client@3.3.11
to completely remove the global declaration. This re-enables normal editor flow without us noticing any side effects.While this is an issue that is angular related its not something that can be solved in the
apollo-angular
package alone. Hence filing this issue here.We currently assume that the current versions of
rxjs/Observable
is simply not compatible with the global declaration anymore.Lib versions:
Here is the diff from patch-package:
The text was updated successfully, but these errors were encountered: