diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-25 00:45:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-25 00:45:10 +0800 |
commit | dbd815c1e0c30c01859cd1f9b8df095d07327d66 (patch) | |
tree | 612da7fa976d9b36cc5ae99011db4fd56a5fbea5 /packages/utils | |
parent | a05b14e4d9659be1cc495ee33fd8962ce773f87f (diff) | |
parent | 9592a9a821dc69d6142cf5cf0d93fd3d280b0d00 (diff) | |
download | dexon-sol-tools-dbd815c1e0c30c01859cd1f9b8df095d07327d66.tar dexon-sol-tools-dbd815c1e0c30c01859cd1f9b8df095d07327d66.tar.gz dexon-sol-tools-dbd815c1e0c30c01859cd1f9b8df095d07327d66.tar.bz2 dexon-sol-tools-dbd815c1e0c30c01859cd1f9b8df095d07327d66.tar.lz dexon-sol-tools-dbd815c1e0c30c01859cd1f9b8df095d07327d66.tar.xz dexon-sol-tools-dbd815c1e0c30c01859cd1f9b8df095d07327d66.tar.zst dexon-sol-tools-dbd815c1e0c30c01859cd1f9b8df095d07327d66.zip |
Merge pull request #905 from 0xProject/fix-rc-packages
Fix Published Packages Type Issues
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. |