question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Type complaining issues with mux-player 1.0.0

See original GitHub issue

Checklist

  • Verified whether your issue exists in the latest version Mux Element(s) release: npm install @mux/[element_name] or yarn @mux/[element_name].
    • (NOTE: If the issue is not occurring in the latest version, we may not resolve it.)
  • Confirmed that this issue hasn’t already been filed.

Which Mux Elements/Packages has a bug?

mux-playback , mux-player

Which browser(s) are you using?

N/A - Compile time issue

Which operating system(s) are you using?

MacOS

How are you using Mux Elements?

npm package, in an angular typescript project

Describe the bug

Steps To Reproduce

  1. install mux-player
  2. Attempt to compile angular project after including mux-player element

Link to code example:

The current behavior

Getting a compile time error

Error: node_modules/@mux/playback-core/dist/types/index.d.ts:5:28 - error TS1005: ',' expected.

5 import { StreamTypes, type ValueOf, type PlaybackCore, type MuxMediaProps, type MuxMediaPropsInternal } from './types';
                             ~~~~~~~


Error: node_modules/@mux/playback-core/dist/types/index.d.ts:5:42 - error TS1005: ',' expected.

5 import { StreamTypes, type ValueOf, type PlaybackCore, type MuxMediaProps, type MuxMediaPropsInternal } from './types';
                                           ~~~~~~~~~~~~


Error: node_modules/@mux/playback-core/dist/types/index.d.ts:5:61 - error TS1005: ',' expected.

5 import { StreamTypes, type ValueOf, type PlaybackCore, type MuxMediaProps, type MuxMediaPropsInternal } from './types';
                                                              ~~~~~~~~~~~~~


Error: node_modules/@mux/playback-core/dist/types/index.d.ts:5:81 - error TS1005: ',' expected.

5 import { StreamTypes, type ValueOf, type PlaybackCore, type MuxMediaProps, type MuxMediaPropsInternal } from './types';
                                                                                  ~~~~~~~~~~~~~~~~~~~~~

Apologies for the short bug report. I’ve attempted to clear down node modules and reinstall however that didn’t resolve for me either…

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

5reactions
dylanjhacommented, Oct 24, 2022

Going to close this and advise that folks on TS 4.3 upgrade to 4.8, I don’t think there are major blockers that would prevent people from doing that upgrade

3reactions
marcelfahlecommented, Oct 15, 2022

Upgrading typescript from 4.3.x to 4.8.x did the trick over here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found