Skip to content

Commit cd3e850

Browse files
committed
add changeset
1 parent 887c77f commit cd3e850

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.changeset/great-experts-chew.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@thirdweb-dev/sdk": patch
3+
---
4+
5+
Fix error when fetching data on `vite-node` environment by setting a global variable `TW_SKIP_FETCH_SETUP` to `true`. Fixes https://github.com/thirdweb-dev/js/issues/2002
6+
7+
Setting this flag sets `skipFetchSetup` to `true` in [ethers ConnectionInfo](https://docs.ethers.org/v5/api/utils/web/#ConnectionInfo)
8+
9+
```ts
10+
// set this global variable
11+
globalThis.TW_SKIP_FETCH_SETUP = true;
12+
13+
// use the thirdweb sdk...
14+
```

0 commit comments

Comments
 (0)