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 trying to figure out how to use Any type. I could not find an example nor my primitve attempts to define provider in appl.module.ts (with the help of Copilot) succeed.
May I ask how to use Any type?
If I do not define anything in app.module.ts I have this error:
core.mjs:8506 ERROR Error: Uncaught (in promise): Error: Message pool is required to cast Any to JSON
Error: Message pool is required to cast Any to JSON
at Any.toProtobufJSON (ngx-grpc-well-known-types.mjs:123:19)
at DatasetProperty.toProtobufJSON (dataset.pb.ts:5295:41)
at DatasetProperties.toProtobufJSON (dataset.pb.ts:2860:50)
at Dataset.toProtobufJSON (dataset.pb.ts:362:27)
at Pool.toProtobufJSON (pool.pb.ts:586:28)
at rpc-defs.pb.ts:450:44
at Array.map (<anonymous>)
at PoolsResponse.toProtobufJSON (rpc-defs.pb.ts:450:33)
at Object.responseMapper (app.module.ts:60:51)
at Object.next (ngx-grpc-core.mjs:189:62)
at resolvePromise (zone.js:1214:31)
at resolvePromise (zone.js:1168:17)
at zone.js:1281:17
at _ZoneDelegate.invokeTask (zone.js:409:31)
at core.mjs:23999:55
at AsyncStackTaggingZoneSpec.onInvokeTask (core.mjs:23999:36)
at _ZoneDelegate.invokeTask (zone.js:408:60)
at Object.onInvokeTask (core.mjs:24300:33)
at _ZoneDelegate.invokeTask (zone.js:408:60)
at Zone.runTask (zone.js:178:47)
core.mjs:8506 ERROR Error: Uncaught (in promise): Error: Message pool is required to cast Any to JSON
Error: Message pool is required to cast Any to JSON
at Any.toProtobufJSON (ngx-grpc-well-known-types.mjs:123:19)
at DatasetProperty.toProtobufJSON (dataset.pb.ts:5295:41)
at DatasetProperties.toProtobufJSON (dataset.pb.ts:2860:50)
at Dataset.toProtobufJSON (dataset.pb.ts:362:27)
at Pool.toProtobufJSON (pool.pb.ts:586:28)
at rpc-defs.pb.ts:450:44
at Array.map (<anonymous>)
at PoolsResponse.toProtobufJSON (rpc-defs.pb.ts:450:33)
at Object.responseMapper (app.module.ts:86:51)
at Object.next (ngx-grpc-core.mjs:189:62)
at resolvePromise (zone.js:1214:31)
at resolvePromise (zone.js:1168:17)
at zone.js:1281:17
at _ZoneDelegate.invokeTask (zone.js:409:31)
at core.mjs:23999:55
at AsyncStackTaggingZoneSpec.onInvokeTask (core.mjs:23999:36)
at _ZoneDelegate.invokeTask (zone.js:408:60)
at Object.onInvokeTask (core.mjs:24300:33)
at _ZoneDelegate.invokeTask (zone.js:408:60)
at Zone.runTask (zone.js:178:47)
```
My angular version is 15.1 if it matters.
The text was updated successfully, but these errors were encountered:
I am trying to figure out how to use Any type. I could not find an example nor my primitve attempts to define provider in appl.module.ts (with the help of Copilot) succeed.
May I ask how to use Any type?
If I do not define anything in app.module.ts I have this error:
If I define something like this in app.modules.ts
I have this error:
The text was updated successfully, but these errors were encountered: