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

TypeError: Cannot read properties of undefined (reading 'readVint') #54

Open
juan-foegen-advantive opened this issue Aug 27, 2024 · 4 comments

Comments

@juan-foegen-advantive
Copy link

Trying to upgrade from 2.x to 3.x in my Angular project and receiving the error message:
TypeError: Cannot read properties of undefined (reading 'readVint')

I didn't see any docs about changes from 2.x to 3.x, so I just updated the library and thought I would give it try. I think it is complaining about tools. I am using - const refinedMetadataBuf = ebml.tools.makeMetadataSeekable(..) or just tools.makeMetadataSeekable with import * as ebml from 'ts-ebml' and import { Decoder, tools, Reader} from 'ts-ebml' respectively. I also tried to alias the include of the tools in case of conflict.

Is there another dependent library I need to include with the 3.x Version?

Thanks.

@juanreynolds
Copy link

Same here in React. It is trying to import tools from ebml

@onthegit
Copy link

You would need to rewire React webpack and include Ebml and Buffer

@moo2k
Copy link

moo2k commented Sep 28, 2024

You would need to rewire React webpack and include Ebml and Buffer

what do you mean? could you please provide a code/solution?

@sjames1958gm
Copy link

Anyone able to get this to work with Angular?

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

5 participants