At the end of part 1, the app.js generates the following error for me:
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
Not sure what is the issue here... if I do npm ls react:
futureoffrance@ /mnt/c/Users/unkn0wn/solana/futureoffrance ├─┬ @solana/wallet-adapter-react-ui@0.6.1 │ ├─┬ react-dom@17.0.2 │ │ └── react@17.0.2 deduped │ └── react@17.0.2 └─┬ @solana/wallet-adapter-react@0.13.1 └── react@17.0.2 deduped
So I see I have react 2 times, but isn't that normal? It's from different modules. I couldn't remove just one there I think...
Any help appreciated Thank you
you're probaby using useWallet or useState outside of a functional component. Make sure they are inside
useWallet
useState
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
At the end of part 1, the app.js generates the following error for me:
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
Not sure what is the issue here...
if I do npm ls react:
futureoffrance@ /mnt/c/Users/unkn0wn/solana/futureoffrance
├─┬ @solana/wallet-adapter-react-ui@0.6.1
│ ├─┬ react-dom@17.0.2
│ │ └── react@17.0.2 deduped
│ └── react@17.0.2
└─┬ @solana/wallet-adapter-react@0.13.1
└── react@17.0.2 deduped
So I see I have react 2 times, but isn't that normal? It's from different modules. I couldn't remove just one there I think...
Any help appreciated
Thank you
you're probaby using
useWalletoruseStateoutside of a functional component. Make sure they are inside