diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-24 22:20:25 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-24 22:20:25 +0800 |
commit | 16a38c687e191d1ab40feeba53e81c0a04bd4824 (patch) | |
tree | 2467f4e385f60e6f5b9e48c271074910ae8ce90a /packages/utils | |
parent | 24aa5cd1bf38197a72be32a53f2e4a7c9aaf58ef (diff) | |
parent | 9a36e73f4ed62871b2c39d129de0ac2c04aeba2b (diff) | |
download | dexon-sol-tools-16a38c687e191d1ab40feeba53e81c0a04bd4824.tar.gz dexon-sol-tools-16a38c687e191d1ab40feeba53e81c0a04bd4824.tar.zst dexon-sol-tools-16a38c687e191d1ab40feeba53e81c0a04bd4824.zip |
Merge fix-rc-packages
Diffstat (limited to 'packages/utils')
-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. |