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

TypeError: Cannot convert undefined or null to object #134

Open
BenjaminHofstetter opened this issue Nov 10, 2024 · 3 comments
Open

TypeError: Cannot convert undefined or null to object #134

BenjaminHofstetter opened this issue Nov 10, 2024 · 3 comments

Comments

@BenjaminHofstetter
Copy link

Hi,

I am observing an error in Chrome.

asyncIterator.js:1 Uncaught TypeError: Cannot convert undefined or null to object
    at Function.getPrototypeOf (<anonymous>)
    at asyncIterator.js:1:18

What causes this issue?

@ehmicky
Copy link
Collaborator

ehmicky commented Nov 10, 2024

Hi @BenjaminHofstetter,

Could you please provide with a reproducible example?
Thanks.

@BenjaminHofstetter
Copy link
Author

@ehmicky I created a demo repo. It's an angular app.

You can run it with ...

npm run start

Then open the browser on http://localhost:4200 and you will see the error in Dev Tools Console.
get-stream is used here https://github.com/BenjaminHofstetter/get-stream/blob/85300db8f42ad2f7b773fbe77ac92f6bedef70e9/src/main.ts#L14

I spent a lot of time to try to resolve this. Without any success.

@ehmicky
Copy link
Collaborator

ehmicky commented Feb 18, 2025

Hi @BenjaminHofstetter,

Thanks for creating this example!
Could you please reduce it? By removing any code that is unrelated to get-stream, such as Angular and the application logic.

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

No branches or pull requests

2 participants