Skip to content

error TS2304: Cannot find name 'Blob' #128

@jojomatik

Description

@jojomatik

Describe the bug
An error is thrown while running tsc in my typescript project using engine.io-parser on version v5.0.3.

Run cd backend && tsc
  cd backend && tsc
  shell: /usr/bin/bash -e {0}
Error: ../node_modules/engine.io-parser/build/esm/commons.d.ts(7,81): error TS2304: Cannot find name 'Blob'.
Error: Process completed with exit code 2.

To Reproduce

Please fill the following code example:

not applicable

engine.io-parser version: v5.0.3

Expected behavior
tsc runs without any issues as it does on version v5.0.0

Platform:

  • Software: tsc
  • OS: ubuntu

Additional context
The logs of the workflows can be found here https://github.com/jojomatik/blockcluster/runs/6233313889 (v5.0.0) and here https://github.com/jojomatik/blockcluster/runs/6233323368 (v5.0.3). The respective commits are linked from within the workflows.

It might be possible that the problem has to be solved somewhere else in the socket.io dependency chain but the error message lead me here. Here is the link to the commit that fails jojomatik/blockcluster@5cecdce. It shows all upgraded dependencies of that might cause the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions