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

Error in the wallet connect #20292

Open
blacdav opened this issue Nov 16, 2024 · 7 comments
Open

Error in the wallet connect #20292

blacdav opened this issue Nov 16, 2024 · 7 comments
Assignees

Comments

@blacdav
Copy link

blacdav commented Nov 16, 2024

Screenshot (115)

  1. After setting up my project with NEXT.js 15, i noticed first that i couldn'nt wrap the wallet provider directly in the layout file, since the layout was for server side, and the walletProvider is a client component.
    i know the team is working hard, but please, can we make the walletProvider support serverside, this would be a great advantage, as alot of libraries and framework now supports both server side and clientside rendering.

  2. Also i noticed this error after when i tried to connect wallet using the 'ConnectWallet' button that's being Provided:
    Error: An empty string ("") was passed to the src attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to src instead of an empty string. at createUnhandledError (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/console-error.js:23:19) at handleClientError (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-error-handler.js:41:56) at console.error (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/client/components/globals/intercept-console-error.js:53:56) at setProp (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:16850:25) at setInitialProperties (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:17402:21) at completeWork (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:13737:18) at runWithFiberInDEV (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:544:16) at completeUnitOfWork (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:15102:19) at performUnitOfWork (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:15005:11) at workLoopSync (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:14818:41) at renderRootSync (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:14796:11) at performWorkOnRoot (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:14290:11) at performSyncWorkOnRoot (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:15859:7) at flushSyncWorkAcrossRoots_impl (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:15721:21) at processRootScheduleInMicrotask (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:15755:7) at eval (webpack-internal:///(app-pages-browser)/./node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js:15875:13)

turns out that an empty string ("") is being passed to an src attribute somewhere in your application. This might happen when a resource (like an image or iframe) expects a valid URL but is being passed an empty value instead.

Please can someone look into this issue, Thank you.

@Thetzx20
Copy link

How to solve this?

@blacdav
Copy link
Author

blacdav commented Nov 17, 2024

I solved the first, but couldn't solve the second.

@hayes-mysten
Copy link
Contributor

Can you provide any more details?

I have not been able to reproduce this. It is possible this is related to one of the wallet extensions you have installed. Does this still happen when all extensions are disabled?

Based on the error alone, there isn't a whole lot I can tell about what might be causing this. dapp-kit itself shouldn't be injecting any script tags as far as I am aware

@hayes-mysten
Copy link
Contributor

Found 1 potential issue that could happen if you have a wallet with an incorrectly configured icon, but not sure that its related: https://github.com/MystenLabs/sui/pull/20304/files

@Thetzx20
Copy link

Thetzx20 commented Nov 20, 2024 via email

@Thetzx20
Copy link

Thetzx20 commented Nov 20, 2024 via email

@Thetzx20
Copy link

Thetzx20 commented Nov 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants