diff --git a/packages/examples/wagmi-demo-react/src/main.tsx b/packages/examples/wagmi-demo-react/src/main.tsx index ad801a958..f1540fff9 100644 --- a/packages/examples/wagmi-demo-react/src/main.tsx +++ b/packages/examples/wagmi-demo-react/src/main.tsx @@ -10,7 +10,7 @@ import { WagmiProvider, deserialize, serialize } from 'wagmi' import './index.css' // `@coinbase-wallet/sdk` uses `Buffer` -globalThis.Buffer = Buffer +(globalThis as unknown as any).Buffer = Buffer import App from './App.tsx' import { config } from './wagmi.ts' diff --git a/packages/examples/wagmi-demo/package.json b/packages/examples/wagmi-demo/package.json index 97695f934..5878db765 100644 --- a/packages/examples/wagmi-demo/package.json +++ b/packages/examples/wagmi-demo/package.json @@ -15,6 +15,7 @@ "next": "14.2.4", "react": ">=18.3.1", "react-dom": ">=18.3.1", + "typescript": "latest", "viem": "^2.21.54", "wagmi": "^2.13.3" }, diff --git a/packages/examples/wagmi-demo/yarn.lock b/packages/examples/wagmi-demo/yarn.lock index 6c7eb020f..550c505db 100644 --- a/packages/examples/wagmi-demo/yarn.lock +++ b/packages/examples/wagmi-demo/yarn.lock @@ -4506,6 +4506,26 @@ __metadata: languageName: node linkType: hard +"typescript@npm:latest": + version: 5.7.2 + resolution: "typescript@npm:5.7.2" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: b55300c4cefee8ee380d14fa9359ccb41ff8b54c719f6bc49b424899d662a5ce62ece390ce769568c7f4d14af844085255e63788740084444eb12ef423b13433 + languageName: node + linkType: hard + +"typescript@patch:typescript@latest#~builtin": + version: 5.7.2 + resolution: "typescript@patch:typescript@npm%3A5.7.2#~builtin::version=5.7.2&hash=77c9e2" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 803430c6da2ba73c25a21880d8d4f08a56d9d2444e6db2ea949ac4abceeece8e4a442b7b9b585db7d8a0b47ebda2060e45fe8ee8b8aca23e27ec1d4844987ee6 + languageName: node + linkType: hard + "ufo@npm:^1.4.0, ufo@npm:^1.5.3": version: 1.5.3 resolution: "ufo@npm:1.5.3" @@ -4801,6 +4821,7 @@ __metadata: react: ">=18.3.1" react-dom: ">=18.3.1" supports-color: ^9.4.0 + typescript: latest utf-8-validate: ^6.0.3 viem: ^2.21.54 wagmi: ^2.13.3