Main.Network returns wrong templateId

Hi,

Actually Main.Network, it returns wrong templateId and so useStreamQuery returns error - “Cannot not resolve any template ID from request”.

Anybody help me?

Thanks.

1 Like

Hi @alexander, welcome to the forum!

It would be great if you could provide some more details? What is Main.Network? Are you working based on some example?

In general, “cannot resolve template id” usually means that you recompiled only parts of your application, e.g., you might have updated your DAML model without running daml codegen js and yarn install --force so your JS code refers to an old template id.

2 Likes

Hi, @cocreature Thanks for your fast solution.

It works well after yarn install --force

Thanks :slight_smile:

1 Like

BTW Welcome to the forum @alexander!