# "No workflows registered" when using bundled workflows

**URL:** <https://community.temporal.io/t/no-workflows-registered-when-using-bundled-workflows/12851>\
**Category:** Community Support\
**Tags:** typescript-sdk\
**Created:** [July 16, 2024, 7:48pm UTC](https://community.temporal.io/t/no-workflows-registered-when-using-bundled-workflows/12851 "2024-07-16T19:48:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![corylogan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/corylogan/32/5265_2.png) [@corylogan](https://community.temporal.io/u/corylogan)\
**Post date:** [July 16, 2024, 7:48pm UTC](https://community.temporal.io/t/no-workflows-registered-when-using-bundled-workflows/12851/1 "2024-07-16T19:48:52Z")

</div>

I’m trying to follow the recommendation of bundling up my workflows for production. For some reason, the local version is working, but the bundled is not.

I switch the source of my workflows based on NODE\_ENV:

```ts
const workflowSource = () => {
  const require = createRequire(import.meta.url);

  return process.env.NODE_ENV !== 'local'
    ? {
        workflowBundlePath: {
          codePath: require.resolve('./workflow-bundle.js'),
        },
      }
    : { workflowsPath: require.resolve('./lib') };
};

```

That workflow source is then passed into my `WorkerOptions`. The worker starts up just fine, but then reports: `No workflows registered, not polling for workflow tasks`

In the UI i can also see that the worker isn’t processing workflows.

I have verified that the workflow bundle produced by `bundleWorkflowCode` exists in the location my config points to, and looked into the contents of the bundle to see that there are indeed reference to the workflow I’m trying to run.

Does anyone have any further debugging steps for me? Thanks!

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [July 22, 2024, 7:00pm UTC](https://community.temporal.io/t/no-workflows-registered-when-using-bundled-workflows/12851/2 "2024-07-22T19:00:41Z")

</div>

Hi @corylogan

Have you tried running this example [samples-typescript/production at main · temporalio/samples-typescript · GitHub](https://github.com/temporalio/samples-typescript/tree/main/production)?

It seems the attribute name is `workflowBundle` (not workflowBundlePath) [samples-typescript/production/src/worker.ts at aebbe3bb1ab084f52194b91e153a555ffb97e97e · temporalio/samples-typescript · GitHub](https://github.com/temporalio/samples-typescript/blob/aebbe3bb1ab084f52194b91e153a555ffb97e97e/production/src/worker.ts#L8)

Antonio
