TypeScript error in "your-first-feature"

Hey Guys,

can anybody please help me, I’m stucked :confused:

Do I do something wrong?

Greetings,
Tom

2 Likes

Hi @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:

  1. Save User.daml with your changes.
  2. Run daml build to build the new DAR.
  3. Generate the new javascript code with daml codegen js .daml/dist/create-daml-app-0.1.0.dar -o daml.js
  4. Pick up the new generated javascript code by running yarn install --force --frozen-lockfile from the ui directory.
  5. 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.

2 Likes