Type errors coming from amazon-ivs-player version 1.18.0

0

Hello, I am running into an issue with Amazon-IVS-player (1.18.0). When I compile the application using (registerIVSTech), I get a lot of errors. They include "Error: node_modules/amazon-ivs-player/dist/index.d.ts:75:18: Cannot find name 'SessionData', SessionData_2', 'TrackBufferedRanges', and 'TrackBufferedRanges_2'. A sample of our code is down below.

import wasmBinaryPath from 'amazon-ivs-player/dist/assets/amazon-ivs-wasmworker.min.wasm'; import { registerIVSTech } from 'amazon-ivs-player'; import wasmWorkerPath from 'amazon-ivs-player/dist/assets/amazon-ivs-wasmworker.min.js';

const createAbsolutePath = (assetPath: string) =>
  new URL(assetPath, document.URL).toString();

registerIVSTech(videojs, {
  wasmWorker: createAbsolutePath(wasmWorkerPath),
  wasmBinary: createAbsolutePath(wasmBinaryPath)
});
asked a year ago265 views
1 Answer
0

Verify package versions: Ensure that you are using compatible versions of the Amazon-IVS-player package, as well as any dependencies it relies on. Check the package.json file and compare the versions with the documentation or the official GitHub repository for the package.

Clear npm/yarn cache: Sometimes, issues can arise due to cached or conflicting package installations. Try clearing the cache for your package manager by running the appropriate command:

For npm: npm cache clean --force For Yarn: yarn cache clean Reinstall dependencies: Delete the node_modules directory and reinstall the dependencies. Use the following commands:

For npm: rm -rf node_modules && npm install For Yarn: rm -rf node_modules && yarn Check TypeScript compatibility: If you are using TypeScript, make sure your TypeScript version is compatible with the Amazon-IVS-player package. Ensure that the TypeScript version and related configuration files (tsconfig.json) are correctly set up.

Reach out to the package maintainers: If the above steps don't resolve the issue, consider reaching out to the maintainers of the Amazon-IVS-player package for support. They may have encountered similar issues or have suggestions specific to their package.

profile picture
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions