question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Property 'validate' in type 'Validator' is not assignable to the same property in base type 'Model<any, ModelSetOptions

See original GitHub issue

Hi,

I am using rappid js version 3.2 from months which works smooth as it should be but since from yesterday my build is failing and facing the below error

`ERROR in node_modules/@clientio/rappid/rappid.d.ts:6046:9 - error TS2416: Property ‘validate’ in type ‘Validator’ is not assignable to the same property in base type ‘Model<any, ModelSetOptions, {}>’. Type ‘(actions: string, …callback: ((err: Error, command: any, next: any) => boolean)[]) => Validator’ is not assignable to type ‘(attributes: Partial<any>, options?: any) => any’. Types of parameters ‘actions’ and ‘attributes’ are incompatible. Type ‘Partial<any>’ is not assignable to type ‘string’.

6046 validate(actions: string, …callback: Array<(err: Error, command: any, next: any) => boolean>): Validator;`

Its coming from rappid.d.ts which is a file inside node_modules. Not sure anything got changed from the rappidJS end.

We use Angular 10.

Please let me know how to solve this one or point me to the Issues where it was a known issue with any suggested fixes. Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kumilinguscommented, Feb 4, 2021

Thanks 😃 I’ll fix it it in Rappid for the upcoming release.

0reactions
Pavan90commented, Feb 16, 2021

Sweet! Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Property 'validate' in type 'MappingService' is not assignable ...
i am using angularjs (1.5.8) framework with latest typescript (2.8.0) files. The below code is not compiled after updating to the latest ...
Read more >
joint - Bountysource
Property 'validate' in type 'Validator' is not assignable to the same property in base type 'Model<any, ModelSetOptions $ 0.
Read more >
Advanced usage - Vuelidate
Using the forEach helper from @vuelidate/validators , you can easily validate all properties inside a collection, without any extra components. WARNING. Note: ...
Read more >
Validation Chain API - express-validator
The validation chain is a middleware, and it should be passed to an Express route handler. You can add as many validators and...
Read more >
Backbone.js
In a finished Backbone app, you don't have to write the glue code that looks ... has a validate method, and validation fails,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found