# TypeScript error in "your-first-feature"

**URL:** <https://forum.canton.network/t/typescript-error-in-your-first-feature/1257>\
**Category:** App Development\
**Created:** [September 18, 2020, 9:37pm UTC](https://forum.canton.network/t/typescript-error-in-your-first-feature/1257 "2020-09-18T21:37:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codingtom](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/codingtom/32/695_2.png) [@codingtom](https://forum.canton.network/u/codingtom)\
**Post date:** [September 18, 2020, 9:37pm UTC](https://forum.canton.network/t/typescript-error-in-your-first-feature/1257/1 "2020-09-18T21:37:43Z")

</div>

Hey Guys,

can anybody please help me, I’m stucked 😕

Do I do something wrong?

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/1X/7c27d70195caf15206030c43e6739aab14a2082c.png)

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/1X/cdd4be38d4e22a6fdae59ca9c5874956e6e9b988.png)

Greetings,  
Tom

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [September 19, 2020, 7:08am UTC](https://forum.canton.network/t/typescript-error-in-your-first-feature/1257/2 "2020-09-19T07:08:42Z")

</div>

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.
