aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio B <kandinsky454@protonmail.ch>2018-11-29 00:56:48 +0800
committerGitHub <noreply@github.com>2018-11-29 00:56:48 +0800
commit53f8e1b3b426424bf4459605b48e706eb7fb6d90 (patch)
treebab67e8c18678812f98ee1e3f241d02d1d01d847 /packages
parent4861e480597547527397ca4df52c29e5caa798c8 (diff)
downloaddexon-sol-tools-53f8e1b3b426424bf4459605b48e706eb7fb6d90.tar
dexon-sol-tools-53f8e1b3b426424bf4459605b48e706eb7fb6d90.tar.gz
dexon-sol-tools-53f8e1b3b426424bf4459605b48e706eb7fb6d90.tar.bz2
dexon-sol-tools-53f8e1b3b426424bf4459605b48e706eb7fb6d90.tar.lz
dexon-sol-tools-53f8e1b3b426424bf4459605b48e706eb7fb6d90.tar.xz
dexon-sol-tools-53f8e1b3b426424bf4459605b48e706eb7fb6d90.tar.zst
dexon-sol-tools-53f8e1b3b426424bf4459605b48e706eb7fb6d90.zip
Add troubleshooting section to dev-utils section
Diffstat (limited to 'packages')
-rw-r--r--packages/dev-utils/README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/dev-utils/README.md b/packages/dev-utils/README.md
index 73b0b8816..b85159dd8 100644
--- a/packages/dev-utils/README.md
+++ b/packages/dev-utils/README.md
@@ -27,6 +27,21 @@ If your project is in [TypeScript](https://www.typescriptlang.org/), add the fol
}
```
+## 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.