You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After my update of package-log.json file this compilation error is thrown.
TSError: ⨯ Unable to compile TypeScript:
src/components/campaigns/controllers/validators/validate-agents.ts:6:24 - error TS2351: This expression is not constructable.
Type 'typeof import("/Users/jurajzovinec/Documents/MY CLOUDTALK PROJECTS/campaigns/node_modules/ajv/dist/ajv")' has no construct signatures.
Also deprecation warning thrown at npm install may be helpful npm WARN deprecated @types/[email protected]: This is a stub types definition for ajv (https://github.com/epoberezkin/ajv). ajv provides its own type definitions, so you don't need @types/ajv installed!
The text was updated successfully, but these errors were encountered:
Jurajzovinec
changed the title
error TS2702: 'Ajv' only refers to a type, but is being used as a namespace here.
TS2351: This expression is not constructable.
Jul 13, 2021
After my update of package-log.json file this compilation error is thrown.
validator function
Ajv reference
Also deprecation warning thrown at npm install may be helpful
npm WARN deprecated @types/[email protected]: This is a stub types definition for ajv (https://github.com/epoberezkin/ajv). ajv provides its own type definitions, so you don't need @types/ajv installed!
The text was updated successfully, but these errors were encountered: