-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 Missing types for "js-cookie" after updating to latest version from 13.14.3 #892
Comments
reverting back to 13.14.3 solves issue |
@streamich SI think this might be the issue with the |
@streamich Fixed with #894 and in |
please reopen |
Can you please set |
setting up |
Just tested |
@streamich We can make the import * as Cookies from 'js-cookie'; But I am not sure if we should do that |
@ayush987goyal I don't think so, it should not matter how we internally import it, right? |
Yes that is correct. Therefore I gave it a try in a TS react project as mentioned above and it worked just fine. |
I guess issues could be with @types/js-cookies itself |
Still having same issue in 13.20.0. Had cleaned ./cache, node_modules and yarn.lock file, still have same issue. PS project is based on Gatsby.js. I'll try to make minimal reproduction on codesandbox.io |
Hello there, this issue has come back. It looks like the fix on #894 in |
I am experiencing the same problem as @makanti. Any updates? |
🎉 This issue has been resolved in version 17.2.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Pude encontrar la solucion para TypeScript, hay que instalar npm i js-cookie y npm i @types/js-cookie -D como devDependencie y tener ambos instalados
|
Missing types "@types/js-cookie": "^2.2.4"
After installing types, it errors out with incorrect import/export.
The text was updated successfully, but these errors were encountered: