Skip to content
#

ts

Here are 1,231 public repositories matching this topic...

actionhero
danijeld
danijeld commented May 11, 2021

Task export inconsistent with actions

In JS mode, exporting tasks as module.exports = class SomeTask causes AH to throw an error when trying to execute it ' task not found' but exporting as exports.someTask = SomeTask works. Actions work either way.

From @evantahler:
actions have this line https://github.com/actionhero/actionhero/blob/v24.0.4/src/initializers/actions.ts#L65-L67
where

Improve this page

Add a description, image, and links to the ts topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ts topic, visit your repo's landing page and select "manage topics."

Learn more