Closed Myzik-Dev closed 4 years ago
As to the error you're seeing, make sure you have the correct version of @bentley/imodeljs-backend installed, and that you've called IModelHost.startup(). If you want to debug it, you can see that interface getting registered here
Yes you should be able to render reality meshes from a desktop app using a local snapshot iModel, as long as you have a network connection and are authenticated to the reality data server. That is quite common.
are you using Electron or a web app with localhost?
@Myzik-Dev The core RPC implementations are registered during IModelHost.startup. The error you are experiencing is often a sign that something went wrong during that function call.
Can you put a try/catch around your awaited call to startup and verify if any errors occur?
are you using Electron or a web app with localhost?
Only web app
@Myzik-Dev can you try iModel.js 2.6.0 that was just released and see if you're still able to reproduce the issue?
iModel.js 2.6.0
It works well in iModel.js 2.6.0. 👍 Thank you for taking care of it quickly.
iModel.js 2.5.3 library seems to have bugs.
There is no problem in the old version, but in that version, an error message [An RPC interface impression class for "SnapshotIModelRpcInterface" is not registered.] appears. (runtime error)