-
Notifications
You must be signed in to change notification settings - Fork 33
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
TS2351: This expression is not constructable. #49
Comments
Please close this issue, clearing of package-lock.json following with |
I'm still getting this error... clearing package-lock.json does not fix. Solution is to use the new import syntax for Ajv. Temporary fix if you just want to get working locally is to go to package-lock.json and replace: "@types/ajv" "^1.0.0" with: "ajv": "6.12.0" Then run |
Because the Workaround:Install For example: yarn add [email protected] |
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: