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

call createDataItemSigner error in next.js #1052

Open
pChao3 opened this issue Oct 22, 2024 · 3 comments
Open

call createDataItemSigner error in next.js #1052

pChao3 opened this issue Oct 22, 2024 · 3 comments

Comments

@pChao3
Copy link

pChao3 commented Oct 22, 2024

Hello, when I used next.js and installed aoconnect, an error occurred when I tried to sign message using createDataItemSigner.
TypeError: arweaveWallet.signDataItem is not a function
at signer (browser.js:11951:38)
at eval (browser.js:8855:39)

@pChao3
Copy link
Author

pChao3 commented Oct 22, 2024

What is the cause of this? and how to fix it ? Thank you

@TillaTheHun0
Copy link
Member

Hey @pChao3 , sorry that you're having issues.

Do you have the ArConnect Extension installed? This is what you use to store your credentials and what exposes the arweaveWallet api.

@pChao3
Copy link
Author

pChao3 commented Oct 24, 2024

Hi, @TillaTheHun0, I just want to sign with my local key file, just like running in a node environment, and I don't want to sign through the browser plug-in of ar wallet. Is it not feasible to directly import createDataItemSigner and then pass in the key file in a browser environment? Do I have to use an arconnect extension?

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

2 participants