Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS2304: Cannot find name 'Blob' #2913

Closed
4 tasks done
kirillgroshkov opened this issue Sep 17, 2020 · 1 comment
Closed
4 tasks done

TS2304: Cannot find name 'Blob' #2913

kirillgroshkov opened this issue Sep 17, 2020 · 1 comment

Comments

@kirillgroshkov
Copy link

Package + Version

Version:

5.23.0

Description

After introducing localforage dependency - it breaks typescript projects that don't have lib: ["dom"] in tsconfig.json (e.g Node.js projects).

Error:

tsc
node_modules/localforage/typings/localforage.d.ts:65:43 - error TS2304: Cannot find name 'Blob'.

65     serialize<T>(value: T | ArrayBuffer | Blob, callback: (value: string, error: any) => void): void;
                                             ~~~~

node_modules/localforage/typings/localforage.d.ts:67:54 - error TS2304: Cannot find name 'Blob'.

67     deserialize<T>(value: string): T | ArrayBuffer | Blob;
                                                        ~~~~

Found 2 errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants