TypeScript error in "your-first-feature"
App Development2 posts287 views4 likesLast activity Sep 2020
CO
codingtomOP
Sep 2020CO
cocreature
Sep 2020Hi @codingtom, this error usually arises if the generated typescript code didn’t get fully updated after adding the messaging feature. There are a few steps you need to follow after making the changes:
- Save
User.damlwith your changes. - Run
daml buildto build the new DAR. - Generate the new javascript code with
daml codegen js .daml/dist/create-daml-app-0.1.0.dar -o daml.js - Pick up the new generated javascript code by running
yarn install --force --frozen-lockfilefrom theuidirectory. - Potentially restart vscode. This only appears to be necessary on Windows and only if you’ve opened a typescript file before making the changes.
I suspect, you missed 3 or 4.


