Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build typescript project with Agenda #1577

Open
mannyOE opened this issue Mar 6, 2024 · 2 comments
Open

Unable to build typescript project with Agenda #1577

mannyOE opened this issue Mar 6, 2024 · 2 comments

Comments

@mannyOE
Copy link

mannyOE commented Mar 6, 2024

I have been using Agenda in dev mode for sometime now and it works like a glove. I had previously used on a project in production and it worked well then as well.

but for this current project, when I run tsc command I get the following error. I have tried so many things and still unable to figure out the reason. Please help me.

`node_modules/agenda/dist/agenda/define.d.ts:34:47 - error TS2344: Type 'T' does not satisfy the constraint 'JobAttributesData'.

34 export declare type Processor = ((job: Job) => Promise) | ((job: Job, done: () => void) => void);
~

node_modules/agenda/dist/agenda/define.d.ts:34:31
34 export declare type Processor = ((job: Job) => Promise) | ((job: Job, done: () => void) => void);
~
This type parameter might need an extends JobAttributesData constraint.

node_modules/agenda/dist/agenda/define.d.ts:34:82 - error TS2344: Type 'T' does not satisfy the constraint 'JobAttributesData'.

34 export declare type Processor = ((job: Job) => Promise) | ((job: Job, done: () => void) => void);
~

node_modules/agenda/dist/agenda/define.d.ts:34:31
34 export declare type Processor = ((job: Job) => Promise) | ((job: Job, done: () => void) => void);
~
This type parameter might need an extends JobAttributesData constraint.

Found 2 errors in the same file, starting at: node_modules/agenda/dist/agenda/define.d.ts:34`

@shashi-chemist2u
Copy link

@mannyOE Did you find any solution ?

@code-xhyun
Copy link

This project is no longer managed, so I'm making something new and working on it.
Check this out 🔥 > pulse

@shashi-chemist2u @mannyOE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants