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
I am getting an error after setting up query parameter bindings:
Types of property 'serialize' are incompatible.
Type 'ParamSerializer<string | null>' is not assignable to type 'ParamSerializer<unknown>'.
Type 'unknown' is not assignable to type 'string | null'.
21 [queryParam]="searchParam">
~~~~~~~~~~
src/app/pages/component.ts:11:16
11 templateUrl: './component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component Component.
It's possible that this has to do with Angular's recent typing improvements; as a workaround, can you try to use QueryParamGroup instead of binding a standalone param?
TS2345: Argument of type 'QueryParam<string>' is not assignable to parameter of type 'QueryParam<unknown> | MultiQueryParam<unknown> | PartitionedQueryParam<unknown, unknown[]>'.
Type 'QueryParam<string>' is not assignable to type 'QueryParam<unknown>'.
Types of property 'serialize' are incompatible.
Type 'ParamSerializer<string | null>' is not assignable to type 'ParamSerializer<unknown>'.
Type 'unknown' is not assignable to type 'string | null'.
I am getting an error after setting up query parameter bindings:
This is the setup of the parameter:
I followed the example in the documentation.
My node_modules:
The text was updated successfully, but these errors were encountered: