-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Doesnt work with ajv@8.8+ #46
Comments
Could you please post the code sample? ajv-formats is tested with the latest Ajv version, so it must be something specific that fails in the newer version, not a general lack of support. |
well, it is pretty straightforward:
|
I cannot really debug VSCode warnings, sorry. Please check the installed versions - both ajv and ajv-formats should be the latest - and post tsc output here, if it generates any errors. VSCode warnings can be happening for various reasons, and are not always a reliable indication that there is something wrong with the types. |
This works here: https://runkit.com/esp/61a74fca5dd82f000846a30f Tests use typescript, so the latest version of ajv-formats does work with the latest version of ajv. You can just try re-installing all dependencies and restarting vscode. |
we're using The Regarding the uninstalling/restarting it was first thing that I did to no avail:) |
that should not be a problem as the former is the subclass of the latter, as ajv-formats can be used with different Ajv classes (one for each JSON Schema version), all being subclasses of the parent class defined in core.ts. I would like to see tsc output, as I said VSCode extension you use may have some issues with it, but it’s not something I can support. |
In my case, I had |
Me too, seems it was an issue with my
|
I had the same issue (upgrade AJV broke TypeScript compilation). It seems that this matches #13, which #15 fixed a couple years ago. The above solutions worked: uninstall However, I noticed that the I do not have that intimate familiarity with peer dependencies, but I would have expected only Also, if it should only have |
I'm currently encountering this issue. Here's the output of
Here's a bit of additional potentially useful debug info:
|
My current workaround whenever I updated
This often installs the same version of Alternatively, you could manually update the lock file’s two (for me) locations of |
I've tried to use 3.0.0-rc.0 above with yarn and typescript, but I still get the incompatibility error below. From what I can tell, yarn will still install the version of ajv specified in its
The correct solution is to remove |
Currently the highest ajv version we can use is
8.6.3
any higher version breaks theaddFormats
that do not accept theAjv
instance anymore.Do you plan an upgrade to support newest versions of AJV?
The text was updated successfully, but these errors were encountered: