Getting Error IC0302 when I export static. (nextjs + rust)

Developing IC application with nextjs and Rust environment. It works with development mode by next dev command. but when I generate statics by next build and next export. It does not work. In console I see below error. I tried to use sdk version 7.0.1 and 7.0.2. both was same issue. I may have issue in my code.


20-6685b0115b1a4d516936.js:1 Error: Call failed:
Canister: rrkah-fqaaa-aaaaa-aaaaq-cai
Method: get (query)
“Status”: “rejected”
“Code”: “DestinationInvalid”
“Message”: “IC0302: Canister rrkah-fqaaa-aaaaa-aaaaq-cai has no query method ‘get’”
at 565-50f51a0c485ab339c54d.js:1

Does anyone encounter same issue? Can you give me your advice?

1 Like