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:
- Update the version numbers in
UI/package.jsonfor all 3 libraries to1.7.0. - Delete
UI/daml.js,UI/node_modulesandUI/package-lock.json. - Rerun
daml startwhich will generate the JS code before starting the ledger. - Run
npm installin theUIdirectory. - Run
npm startto startup the frontend.