Skip to content

TS2304: Cannot find name 'Blob' #2913

@kirillgroshkov

Description

@kirillgroshkov

Package + Version

  • @sentry/node@5.23.0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions