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.json
for all 3 libraries to1.7.0
. - Delete
UI/daml.js
,UI/node_modules
andUI/package-lock.json
. - Rerun
daml start
which will generate the JS code before starting the ledger. - Run
npm install
in theUI
directory. - Run
npm start
to startup the frontend.