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

I'm getting error when using the SDK in the browser #259

Closed
dongido001 opened this issue Feb 14, 2020 · 7 comments · Fixed by #260
Closed

I'm getting error when using the SDK in the browser #259

dongido001 opened this issue Feb 14, 2020 · 7 comments · Fixed by #260
Assignees
Labels
bug Something isn't working

Comments

@dongido001
Copy link

dongido001 commented Feb 14, 2020

I'm getting error when using the SDK in the browser.

When I use the SDK in the script tag:

<script src="https://cdn.jsdelivr.net/npm/stream-chat"></script>

I get the following error on the console:

Screenshot 2020-02-14 at 5 57 16 PM

I have also tried using: "https://cdn.jsdelivr.net/npm/stream-chat/dist/browser.full-bundle.min.js" but then I get another error message on the console:

Screenshot 2020-02-14 at 5 59 44 PM

Let me know what I am doing wrong, thanks! @tbarbugli @pterk ...

@dongido001 dongido001 changed the title I'm having error using the SDK in the browser I'm getting error when using the SDK in the browser Feb 14, 2020
@pterk
Copy link

pterk commented Feb 15, 2020

@dongido001 look into https://requirejs.org/ or check out a more highlevel tutorial here: https://getstream.io/chat/react-chat/tutorial/

@pterk pterk closed this as completed Feb 15, 2020
@tbarbugli
Copy link
Member

@pterk this is an actual bug; the browser full bundle should be umd and not depend on require.

@tbarbugli tbarbugli reopened this Feb 16, 2020
@tbarbugli
Copy link
Member

@tbarbugli tbarbugli added the bug Something isn't working label Feb 16, 2020
@tbarbugli
Copy link
Member

tbarbugli commented Feb 16, 2020

@dongido001 in the meantime you can use an older version of the SDK (https://cdn.jsdelivr.net/npm/[email protected]/dist/browser.full-bundle.min.js)

@tbarbugli
Copy link
Member

1.2.3 seems to be the first release with this problem

@dongido001
Copy link
Author

Thanks @tbarbugli ! works for me now

@vishalnarkhede
Copy link
Contributor

@dongido001 browser bundle has been fixed. now in v1.3.3.

mksglu pushed a commit to mksglu/stream-chat-js that referenced this issue Jun 13, 2020
add targetFeedsExtraData param for reactions with feed targets
kevinnath1007 pushed a commit to kevinnath1007/stream-chat-js that referenced this issue Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants