-
Notifications
You must be signed in to change notification settings - Fork 373
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
TypeScript error TS2351 with validator.ts #1228
Comments
Thanks for the report, I guess we should avoid wildcard imports altogether. We'll try to address this issue in the upcoming sprint. |
Weirdly... the issue went away once I blew away the |
@edgarmueller - Can you please consider getting this one fixed in the 2.2.0 version? It came back for no good reason whatsoever, and now it is breaking all our builds unless we all individually patching this file. |
Alright we'll try to have a look. |
Thanks @edgarmueller. Note that the following is what has resolved the issue, (capital
|
@clayroach Could the issue be related to different compiler settings, i.e. do you have |
We have released a pre-release 2.1.1-alpha.3, which contains #1242, i.e. the esModuleInterop flag is now set. Could you give it a try and let us know whether this solves your issue? |
Yes, will do! |
@edgarmueller Looks that resolved it! Thanks. |
To Reproduce
Compile project with webpack.
Expected behavior
No error
Proposed solution
Change import from:
import * as AJV from 'ajv';
To:
import Ajv from 'ajv';
The text was updated successfully, but these errors were encountered: