diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-26 01:33:13 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-26 01:33:13 +0800 |
commit | da4b70fcae1da2c35905a30b79707b3f27b9fa3a (patch) | |
tree | 65dbdb8f75c8e93cd788149610522f5bf5ada643 /packages/utils/README.md | |
parent | ad4c2b95e4722e6d227c26f436bedf7b06f5356a (diff) | |
parent | 05b35c0fdcbca7980d4195e96ec791c1c2d13398 (diff) | |
download | dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.tar dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.tar.gz dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.tar.bz2 dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.tar.lz dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.tar.xz dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.tar.zst dexon-sol-tools-da4b70fcae1da2c35905a30b79707b3f27b9fa3a.zip |
Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/web3-wrapper/unexport-marshaller
Diffstat (limited to 'packages/utils/README.md')
-rw-r--r-- | packages/utils/README.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/utils/README.md b/packages/utils/README.md index c637c9af5..c9a2f5846 100644 --- a/packages/utils/README.md +++ b/packages/utils/README.md @@ -22,6 +22,21 @@ If your project is in [TypeScript](https://www.typescriptlang.org/), add the fol import { addressUtils, bigNumberConfigs, classUtils, intervalUtils, promisify } from '@0xproject/utils'; ``` +## Troubleshooting + +If you are still seeing TS type errors complaining about missing DOM types such as `Response`: + +``` +error TS2304: Cannot find name 'Response'. +``` + +Then you need to explicitly add the `dom` lib to your compiler options in `tsconfig.json`. The `dom` library is included by default, but customizing the `lib` option can cause it to be dropped. + +``` +"compilerOptions": { + "lib": [..., "dom"], +``` + ## Contributing We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository. |