Skip to content

Commit 88b6a3d

Browse files
committed
docs: include error messages for missing typings
1 parent 2c51349 commit 88b6a3d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ Make sure you have configured your TSConfig so it matches the environment you ar
8585

8686
If you're using Node.js, ensure you have `@types/node` installed (and it is version 18 or higher). Cloudflare workers have `@cloudflare/workers-types` etc.
8787

88+
The following errors are caused by targetting an environment that does not have the necessary types available:
89+
90+
```
91+
error TS2304: Cannot find name 'Event'.
92+
error TS2304: Cannot find name 'EventTarget'.
93+
error TS2304: Cannot find name 'MessageEvent'.
94+
```
95+
8896
## Migrating from v1 / v2
8997

9098
See [MIGRATION.md](MIGRATION.md#v2-to-v3) for a detailed migration guide.

0 commit comments

Comments
 (0)