-
Notifications
You must be signed in to change notification settings - Fork 40
Incompatible with latest versions of the main libraries #38
Comments
Hi @mwawrusch, that sounds like linter issues, can you share the error log? |
this is the top level error:
|
getAcount in magicConnector has this one:
|
same issue |
can pay a tip in crypto to see this done soon :D, working on an urgent project. and would love to integrate this right away. |
@mwawrusch Thanks for opening this issue ! Can you provide us a minimal reproduction repo for this ? it would help a lot 🙏 |
https://github.com/LyghtCode/magic-connector-type-issue |
Thanks LyghtCode |
np my version of next is next 12 i believe the main issue is adjusting the typing for the Connector to adhere to the newer wagmi Connector type |
any updates? |
We are working on new version with all latest magic and wagmi packages. but we are facing type issues from magic side. the same types are exported from different magic packages and they are seemingly not fitting with each other. so we are trying to sync up with the magic team to know how to use their exported types. we are still waiting for their response and hopefully we should get this resolved soon. |
thank you so much! |
Thanks, much appreciated. |
wagmi |
status? :D |
:( |
|
Added a comment as well and sent you a friend request on discord. |
I followed up with you via our support chat but wanted to follow up here as well. I believe the move here is to upgrade to the latest version of the Magic SDK. Also, the Magic SDK uses Please let me know if this helps! |
Thanks !! This solved the issue. Currently we are testing the package, will release the update today asap. |
Guys,
|
Thanks for reporting 🙏 hoping #41 and #43 should fix the issue. |
Done ! it seems to be working fine now, there was some module resolution issues which we solved by converting the package to ES Module. it should work without issues. try out with |
@LyghtCode also added a new branch to your reproduction with fixed package https://github.com/LyghtCode/magic-connector-type-issue/tree/after-fix |
Amazing |
We will test on our production repo on Monday. |
Looks good on our end so far. We saw this warning (haven't had time to investigate further): The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate |
it works. i was just wondering if it was possible to call the showallet() function? while using this wagmi, rainbowwallet config. |
Seems like its a issue coming from magic. |
normally we can get the wallet information on useAccount hook from wagmi and use it to render the ui for wallet. but its interesting how we might implement the showWallet function for magic connect. opening another issue on this so we can gather some ideas. |
@LyghtCode once check this out. probably this will work const { connector } = useAccount()
//...
connector.magicSDK.connect.showWallet(); |
will try it tmmrw! |
@Royal-lobster hey, I am having some issues integrating MagicAuth with wagmi (might just not be using it correctly), but wondering if there is any issue with TypeScript? I saw some comments above with similar issues, I am getting the following error:
I am creating a connector based on the examples in the readme, and then using wagmi to create a connector.
Any help would be awesome, thanks so much and great work on this connector! Super helpful Edit: adding versions from |
Thanks for reporting. i guess this is probably because of wagmi version you are using. try updating the wagmi to ^0.10.10. also you don't need to install @magic-ext/connect, @magic-sdk/admin and magic-sdk seperately. the magic libraries comes with @everipedia/wagmi-magic-connector. |
Thanks, I had those magic libs installed previously, will clean them up once I get this working. The interesting part is this seems to be just a linting issue, the functionality seems to work. I am using rainbowkit and had issues with wagmi v^0.10.10, so after speaking with the rainbow team I downgraded to ^0.9.0 until they support 0.10.X. Maybe I just have to wait then and manually ignore the linter? |
Ohh. I created a small repo of magic + rainbow integration https://github.com/Royal-lobster/rainbow-magic-example once check it out if it helps. |
Yeah I noticed that, thanks for sharing! It looks like a lot of the versions in that package.json are outdated thought so I dont know if its a direct comparison. Rainbow did say they will work towards supporting wagmi 0.10.X soon so hopefully that resolves my issues. |
this works do you have an example on how to create and send a transaction with the wagmi object? i know the sendTransaction() function exists somewhere but im having a hard time figuring out how to reach the function through wagmi. |
I assume you can use the send transaction hook from wagmi |
i tried that actually. theoretically it should pop up the magic wallet to confirm the transaction but that doesn't happen. i figured maybe calling sendTransaction from the Magic SDK object might work, similar to how we get walletShow(). |
Are you using MagicAuth or MagicConnect? MagicAuth is completely white labeled and doesnt have a signature confirmation modal, so that may be why (if you're using MagicAuth)? |
Connect |
Actually by default magic will auto confirms the transaction. |
Hey! What was you did to solve this issue? I'm having a similar issue here - but without using rainbow: |
Hey! As of now, I am just defining the connector as |
Hi guys, trying to get this to work with
using next.js v13
but it won't compile, tons of errors, some type related.
The text was updated successfully, but these errors were encountered: