Skip to content

Commit c55d38b

Browse files
authored
Add note about #577 to README
1 parent f68c619 commit c55d38b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@ db.query({
6161
});
6262
```
6363

64+
## Common issues
65+
66+
### TypeScript `error TS2304: Cannot find name 'Blob'.`
67+
68+
Even if your project doesn't contain any browser code, you need to add `"dom"` to the `"lib"` array in your `tsconfig.json` to make arangojs work. This is a known limitation because the library supports both browser and Node environments and there is no common binary format that works in both environments:
69+
70+
```diff
71+
// tsconfig.json
72+
- "lib": ["es6"],
73+
+ "lib": ["es6", "dom"],
74+
```
75+
6476
## Documentation
6577

6678
[Latest Documentation](https://docs.arangodb.com/devel/Drivers/JS/)

0 commit comments

Comments
 (0)