Skip to content

Update from 2.4.0 to 3.1.5 cause type incompatibility #799

@emcdaniel-sungage

Description

@emcdaniel-sungage

We're trying to update to remediate these vulnerabilities:

But when we do so we get the following error when compiling the TypeScript

error TS2322: Type 'import("/node_modules/@escape.tech/graphql-armor-cost-limit/node_modules/graphql/validation/ValidationContext").ValidationRule[]' is not assignable to type 'import("/node_modules/graphql/validation/ValidationContext").ValidationRule[]'.
  Type 'import("/node_modules/@escape.tech/graphql-armor-cost-limit/node_modules/graphql/validation/ValidationContext").ValidationRule' is not assignable to type 'import("/node_modules/graphql/validation/ValidationContext").ValidationRule'.
    Types of parameters 'context' and 'context' are incompatible.
      Type 'import("/node_modules/graphql/validation/ValidationContext").ValidationContext' is not assignable to type 'import("/node_modules/@escape.tech/graphql-armor-cost-limit/node_modules/graphql/validation/ValidationContext").ValidationContext'.
        Types have separate declarations of a private property '_schema'.

validationRules: apolloProtection.validationRules,

From this line of code
validationRules: apolloProtection.validationRules (in a Nest.js codebase if that matters).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions