Weird build error when building my app
yarn run v1.22.19
$ tsc
node_modules/@tanstack/query-core/src/queryObserver.ts:543:46 - error TS2345: Argument of type '(TQueryData & ({} | null)) | (TData & ({} | null))' is not assignable to parameter of type 'TData'.
'TData' could be instantiated with an arbitrary type which could be unrelated to '(TQueryData & ({} | null)) | (TData & ({} | null))'.
543 data = replaceData(prevResult?.data, placeholderData, options) as TData
~~~~~~~~~~~~~~~
Found 1 error in node_modules/@tanstack/query-core/src/queryObserver.ts:543
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.$ tsc
node_modules/@tanstack/query-core/src/queryObserver.ts:543:46 - error TS2345: Argument of type '(TQueryData & ({} | null)) | (TData & ({} | null))' is not assignable to parameter of type 'TData'.
'TData' could be instantiated with an arbitrary type which could be unrelated to '(TQueryData & ({} | null)) | (TData & ({} | null))'.
543 data = replaceData(prevResult?.data, placeholderData, options) as TData
~~~~~~~~~~~~~~~
Found 1 error in node_modules/@tanstack/query-core/src/queryObserver.ts:543
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.