Skip to content
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]: : Cannot convert undefined value to object #79

Closed
nikitapilgrim opened this issue Oct 31, 2023 · 4 comments
Closed

[bug]: : Cannot convert undefined value to object #79

nikitapilgrim opened this issue Oct 31, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@nikitapilgrim
Copy link

Description

TypeError: Cannot convert undefined value to object

This error is located at:
in Web3Modal (created by Web3Provider)
in QueryClientProvider (created by WagmiConfig)
in WagmiConfig (created by Web3Provider)
in Web3Provider (created by Providers)

Web3Modal SDK version

1.0.0-alpha.13

Output of npx react-native info

System:
OS: macOS 14.1
CPU: (8) arm64 Apple M1
Memory: 792.44 MB / 16.00 GB
Shell:
version: 3.6.1
path: /opt/homebrew/bin/fish
Binaries:
Node:
version: 18.17.1
path: ~/.volta/tools/image/node/18.17.1/bin/node
Yarn:
version: 4.0.0-rc.48
path: ~/.volta/tools/image/yarn/4.0.0-rc.48/bin/yarn
npm:
version: 9.6.7
path: ~/.volta/tools/image/node/18.17.1/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.14.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.0
- iOS 17.0
- macOS 14.0
- tvOS 17.0
- watchOS 10.0
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 15.0.1/15A507
path: /usr/bin/xcodebuild
Languages:
Java:
version: 21.0.1
path: /opt/homebrew/opt/openjdk/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: ^18.2.0
react-native:
installed: 0.72.6
wanted: ^0.72.6
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false

Expo Version (if applies)

49.0.16

Steps to reproduce

I used the steps from the documentation

Snack, code example, screenshot, or link to a repository

https://docs.walletconnect.com/web3modal/react-native/about

@nikitapilgrim nikitapilgrim added the bug Something isn't working label Oct 31, 2023
@ignaciosantise
Copy link
Collaborator

Hey @nikitapilgrim 👋 could you share a public repository or a code sandbox with the reproducible issue?

@nikitapilgrim
Copy link
Author

nikitapilgrim commented Nov 2, 2023

@ignaciosantise
I see what the problem is. I have already used valtio in my project. How can I solve this problem?
After removing valtio everything started working, but I need valtio.
the version of valtio in my project is 1.11.2

@ignaciosantise
Copy link
Collaborator

@nikitapilgrim that's interesting 🤔 So the difference between valtio versions is bringing issues.

As a workaround you can add this in your package.json and install node_modules again. resolutions forces to install that version only. Our package should work with that version too

"resolutions": {
    "valtio":"1.11.2"
  },

Let me know if that helps for now

@nikitapilgrim
Copy link
Author

its work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants