scaffold-eth / scaffold-eth-2

Open source forkable Ethereum dev stack
https://scaffoldeth.io
MIT License
1.19k stars 745 forks source link

bug: Type error: Type 'string' is not assignable to type '`0x${string}`'. #870

Closed dimitrihartt closed 4 weeks ago

dimitrihartt commented 4 weeks ago

Is there an existing issue for this?

Which method was used to setup Scaffold-ETH 2 ?

git clone

Current Behavior

Failed to compile. ./app/blockexplorer/_components/AddressComponent.tsx:22:26 Type error: Type 'string' is not assignable to type '0x${string}'.

22 |

| ^ Error: Command "yarn run build" exited with 1

Expected Behavior

That String could be assignable to Address

Steps To Reproduce

Deploying to vercel using git clone.

Anything else?

No response

technophile-04 commented 4 weeks ago

Hey thanks @dimitrihartt for creating the issue! Checking it out now

but untill then you can by pass the error on vercel by running : yarn vercel:yolo --prod