-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
bug: storage.removeItem is not a function #4475
Comments
Got the Same error TypeError: storage.removeItem is not a function |
Same problem for me, probably due to using next js 15,I tried to use cookie storage but it no longer works with headers()).get("cookie") |
this happens in the latest release ([email protected]) while in the previous release ([email protected]) there is no problem |
Fixed with wagmi@"2.10.2" |
@kritik-sah bro why not use "wagmi": "2.14.3"? |
Running with "2.14.3" ,too. |
same issue with |
I'm using @wagmi/vue and faced same issue. Any suggestions how to fix it? |
@chervyachok downgrade or wait for next release |
This issue has been locked since it has been closed for more than 14 days. If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Wagmi version. If you have any questions or comments you can create a new discussion thread. |
Check existing issues
Describe the bug
Dear wagmi team.
When to connect wallet in next.js project, there is issue "TypeError: storage.removeItem is not a function"
I tried like this.
Unhandled Runtime Error
TypeError: storage.removeItem is not a function
Call Stack
Object.removeItem
webpack-internal:\node_modules@wagmi\core\dist\esm\createStorage.js (28:1)
Object.onAccountsChanged
webpack-internal:\node_modules@wagmi\core\dist\esm\connectors\injected.js (387:1)
how to fix it? it is wagmi bug, isn't it?
Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
What Wagmi package(s) are you using?
wagmi, @wagmi/core
Wagmi Package(s) Version(s)
2.16.1
Viem Version
2.17.0
TypeScript Version
5.5.2
Anything else?
No response
The text was updated successfully, but these errors were encountered: