aws-samples / aws-samples/amazon-ivs-player-web-sample

Uncaught TypeError: Cannot read properties of undefined (reading 'startsWith') at K (amazon-ivs-wasmworker.min.js:208:1)

Open
#73 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
90
Forks
38
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
After adding the webpack config changes for wasm files, I'm facing the ` reading startWith of undefined` issue as shown in the below screenshot. I'm integrating it with the native HTML5 video element.

**To Reproduce**
Setup on my end https://codesandbox.io/s/ivs-player-6dfhvg?file=/src/IVSPlayer.js:2486-2494

**Screenshots**
Screenshot 2023-01-23 at 10 04 08 PM

**Desktop (please complete the following information):**
- OS: [Mac OS]
- Browser [Chrome, Safari, firefox]
- Version [NA]

Please let me know the steps to make it work. I don't want to use the CDN.

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox, especially src/IVSPlayer.js and the webpack configuration changes for WASM files, then reproduce the TypeError using the native HTML5 video element without the CDN. Done means the sample loads and plays without the startsWith error across the reported browsers, or the issue is narrowed to a documented SDK integration limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wasm, webpack
Domain
build-system, frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.