-
Notifications
You must be signed in to change notification settings - Fork 156
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
v5.0.0 issues #1113
Comments
I am facing an issue when used with KeyvAdapter (from @apollo/utils.keyvadapter). After the upgrade, a typescript error started coming as
There was no breaking changes mentioned in the dependency PR. It would be great if someone can point to docs/references where it explains how to update to the current version so that its adaptable |
@keerthana-tw apollo's KeyvAdapter is not updated to support Keyv v5 yet. It's not a problem in Keyv v5. I filed an issue for apollo-utils to upgrade. |
@paulrobertlloyd - thanks and we are looking at this now. |
#1115 is up to resolve ESM issues |
@paulrobertlloyd - can you validate that |
@jaredwray It does! Thanks for quickly resolving these 2 issues 🚀 |
Describe the bug
Quick to the draw I know, but was coincidently updating dependencies on my project, and noticed the v5.0.0 PR being prepared, and then the package released, so had a go at upgrading. And I’ve spotted 2 issues (these may be down to user error, but I don’t think so).
1. Can’t import the package into an ESM-based project
My project is ESM based, yet I’m getting the following error:
I know that shipping modules that support CJS and ESM gets super complicated, so not sure if there’s an issue with how the package is set up to support ESM modules or with how I’m importing it into my project?
2. Types (expression is not constructable)
I get the following error raised in my IDE for the
Keyv
class:Perhaps related the above?
How To Reproduce (best to provide workable code or tests!)
I’ve followed the migration instructions, but the errors reported seem separate to any specific implementation.
You can see the changes I made to upgrade to v5.0.0 in this branch: getindiekit/indiekit@main...spike/update-kev-mongo-deps
You should be able to install the project, and then run the following unit test to see the reported error:
Congrats on the release; hopefully these are quickly solvable launch niggles! 🎉
The text was updated successfully, but these errors were encountered: