Open achimstruve opened 2 years ago
Uncaught TypeError: Unsupported chain transactionReducer reducer.ts:31 React 3 TransactionProvider provider.tsx:17 React 9 workLoop scheduler.development.js:266 flushWork scheduler.development.js:239 performWorkUntilDeadline scheduler.development.js:533 js scheduler.development.js:571 js scheduler.development.js:633 factory react refresh:6 Webpack 24
All token amounts of my wallt are shown on the UI as intended. The approve dialog of MetaMask pops up if I hit the Stake button. Unfortunately the UI crashes right afterwards (everything becomes white and no UI elements are visible anymore). The console says something about "Uncaught TypeError: Unsupported chain", such as shown above. In this last lesson I only worked with the Kovan network and MetaMask is set to Kovan as well. Does anyone have an idea on how to fix it?
I just tried to clone the whole front_end code from the repo and exchanged it with mine to make sure I didn't mess anything up through a typing error. Afterwards I ran the update_front_end.py script to update the contract information in the chain-info directory. I still get the same error as with my own typed code.
Does anyone know a solution to this?
It's likely due to the recent react update... I think
But if you're cloning it you should get the exact version of react I used.... hmmm....
I'm not sure what's going on :/
I am getting it too Uncaught TypeError: Unsupported chain
. But if I log chainId it says '42'
that is for kovan. It is too wired. I am building it by your video and not cloning it.
Uncaught TypeError: Unsupported chain transactionReducer reducer.ts:31 React 3 TransactionProvider provider.tsx:17 React 9 workLoop scheduler.development.js:266 flushWork scheduler.development.js:239 performWorkUntilDeadline scheduler.development.js:533 js scheduler.development.js:571 js scheduler.development.js:633 factory react refresh:6 Webpack 24
All token amounts of my wallt are shown on the UI as intended. The approve dialog of MetaMask pops up if I hit the Stake button. Unfortunately the UI crashes right afterwards (everything becomes white and no UI elements are visible anymore). The console says something about "Uncaught TypeError: Unsupported chain", such as shown above. In this last lesson I only worked with the Kovan network and MetaMask is set to Kovan as well. Does anyone have an idea on how to fix it?