-
Notifications
You must be signed in to change notification settings - Fork 793
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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`
The text was updated successfully, but these errors were encountered: