Issues Log
Log of past development issues, investigations and resolutions so you can improve the process and establish where knowledge gaps are.
Investigations
MetaMask
UNPREDICTABLE_GAS_LIMIT
cannot estimate gas; transaction may fail or may require manual gas limit","code":"UNPREDICTABLE_GAS_LIMIT"
Failing Tranactions / Nonce Count Wrong
https://metamask.zendesk.com/hc/en-us/articles/360015488891-How-to-reset-your-account
Scaffold Eth
Re-verify Contract on Etherscan
yarn verify --network rinkeby in turn calls
hardhat etherscan-verify --api-key {ETHERSCAN-API-KEY} --network rinkeby
returns
already verified: Vendor (0x983608B2D81E350d34A5c19977Ed0Bdb01d25fA9), skipping.
already verified: YourToken (0x57e42885143816Eb425b559182A0218340c60d36), skipping.
Next.js
Create Next App - Unresolved
Might have been a node.js install issue but NX was able to create Next apps without problems.
Need to check if now resolved.
Error: Hydration failed because the initial UI does not match what was rendered on the server
Eth-Hooks with Nextjs
SyntaxError: Cannot use import statement outside a module
Spend a couple of hours reading and trying out several options but could not work it out easily.
https://github.com/vercel/next.js/discussions/27876
TODO: create a ticket in eth-hooks
Resolution
Copied code directly into an NX lib.
Primarily wanted to understand the architecture and dependenices of Eth-hooks and Eth-Components and work with React/Nextjs not vite.