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

Getting error on uploaded build of angular on server #288

Closed
prateek756 opened this issue Jul 15, 2020 · 2 comments
Closed

Getting error on uploaded build of angular on server #288

prateek756 opened this issue Jul 15, 2020 · 2 comments
Assignees

Comments

@prateek756
Copy link

Hi,

I have integrated music-metadata-browser in my Angular 8 project and its working fine on local server of my system but when I uploaded the project on server then getting error on the component in which music-metadata-browser is used. Error that I am getting is:

core.js:6014 ERROR Error: Uncaught (in promise): TypeError: Class extends value undefined is not a constructor or null
TypeError: Class extends value undefined is not a constructor or null
at Object../node_modules/music-metadata/lib/id3v2/ID3Stream.js (ID3Stream.js:8)
at webpack_require (bootstrap:84)
at Object../node_modules/music-metadata/lib/aiff/AiffParser.js (AiffParser.js:12)
at webpack_require (bootstrap:84)
at Object../node_modules/music-metadata/lib/ParserFactory.js (ParserFactory.js:9)
at webpack_require (bootstrap:84)
at Object../node_modules/music-metadata/lib/core.js (core.js:5)
at webpack_require (bootstrap:84)
at Object../node_modules/music-metadata-browser/lib/index.js (index.js:5)

@Borewit Borewit self-assigned this Aug 3, 2020
@Borewit
Copy link
Owner

Borewit commented Aug 3, 2020

The problem seems to be dependency in ID3Stream to Node stream, which is a Node thing. I guess in a lot of cases this is poly-filled, but it does not work here.

I need to investigate a bit further. Maybe I can get rid of the dependency.

@Borewit
Copy link
Owner

Borewit commented Aug 9, 2020

Dependency removed: Borewit/music-metadata#580

@prateek756 can you please verify if the issue is resolved with version v2.1.1?

@Borewit Borewit closed this as completed Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants