# Worker error with .mul is not a function

**URL:** <https://community.temporal.io/t/worker-error-with-mul-is-not-a-function/5573>\
**Category:** Community Support\
**Tags:** typescript-sdk\
**Created:** [August 4, 2022, 3:48am UTC](https://community.temporal.io/t/worker-error-with-mul-is-not-a-function/5573 "2022-08-04T03:48:46Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![rifruf](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/rifruf/32/2121_2.png) [@rifruf](https://community.temporal.io/u/rifruf)\
**Post date:** [August 9, 2022, 5:41pm UTC](https://community.temporal.io/t/worker-error-with-mul-is-not-a-function/5573/20 "2022-08-09T17:41:12Z")

</div>

So those suggestions didn’t seem to fix the problem, but after some help, the problem seems to be the way that we build our Docker containers that run these workers in our deployments. Specifically, we have a line where we do `RUN yarn workspaces focus --production @temporal-workflows`, causing the container to only install dependencies, but not devDependencies. We tried running `RUN yarn workspaces focus --all @scale/temporal-workflows` instead, which seems to work.

What happens here is that the number passed in to this line ([sdk-typescript/time.ts at main · temporalio/sdk-typescript · GitHub](https://github.com/temporalio/sdk-typescript/blob/main/packages/internal-workflow-common/src/time.ts#L32)) is a `Long` when running with --all, but is just a Javascript number when running with --production.

We tried moving all the devDependencies to dependencies in our repositories `package.json` files, but this still didn’t fix the issue, so it led us to believe that it’s a possibility the error stems from within the temporalio typescript SDK package not having a dependency listed (possibly long listed here [sdk-typescript/package.json at main · temporalio/sdk-typescript · GitHub](https://github.com/temporalio/sdk-typescript/blob/main/package.json#L88)). We also had a similar problem earlier where for some reason `long` had to be specified as a dependency in our root package.json, even though we were only using `temporalio` in a package located within our `packages/` folder (and specifying `long` in that package’s `package.json` didn’t work either).

Curious if you guys have suggestions moving forward about how to best remedy this/test if this is the case? We were running into issues building/installing your typescript SDK package locally (so that we could use this) to verify.

---

_[View the full topic](https://community.temporal.io/t/worker-error-with-mul-is-not-a-function/5573)._
