I get "Trying to look up template ..." error in front end

Hi @Xuyx, the issue is that your SDK version is 1.7.0 while the version of the @daml/ledger, @daml/types and @daml/react specified in your package.json is still 1.6.0. The two always need to be kept in sync. The following steps worked for me to fix the issue in your project:

  1. Update the version numbers in UI/package.json for all 3 libraries to 1.7.0.
  2. Delete UI/daml.js, UI/node_modules and UI/package-lock.json.
  3. Rerun daml start which will generate the JS code before starting the ledger.
  4. Run npm install in the UI directory.
  5. Run npm start to startup the frontend.
3 Likes