Skip to content

Error importing with CommonJS #2549

@avelad

Description

@avelad

Have you read the FAQ and checked for duplicate open issues? Yes

What version of Shaka Player are you using? master as of 2020-05-05

Can you reproduce the issue with our latest release version? No, because v2.5 doesn't the new compiler

Can you reproduce the issue with the latest code from master? Yes

Are you using the demo app or your own custom app? Custom

If custom app, can you reproduce the issue using our demo app? No due Demo app is not using require (CommonJS)

What browser and OS are you using? Any

For embedded devices (smart TVs, etc.), what model and firmware version are you using?

What are the manifest and license server URIs?

Does not apply

What did you do?

Something like:
const shaka = require('../shaka-player/dist/shaka-player.compiled.js');
console.log(shaka.Player.version);

What did you expect to happen?
Shaka version is shown

What actually happened?

shaka.Player is undefined

Metadata

Metadata

Labels

status: archivedArchived and locked; will not be updatedtype: bugSomething isn't working correctly

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions