codec-parser icon indicating copy to clipboard operation
codec-parser copied to clipboard

`getFrame` is undefined

Open icidasset opened this issue 2 years ago • 1 comments

Hey 👋 Thanks for this great package, and all the others 😄

I'm trying to parse some MP3 files in the browser and getting this error: Screenshot 2024-03-15 at 14 06 20

Could this be a bundler issue, or something else? Bundler used: https://rsbuild.dev/

EDIT: Does work with vite, don't know why rsbuild falls over this 🤔

icidasset avatar Mar 15 '24 13:03 icidasset

Hey, thanks for posting the issue.

I'm not sure why this would fail either. My guess is that it's a minifier bug where the getFrame variable is being improperly renamed. It might be the object destructuring happening here that's being minified improperly.

I'd need to trace through the minified build to see where this reference is getting lost to really find out.

eshaz avatar Apr 07 '24 16:04 eshaz