8000 'copyWithLocations is not a function' bug · Issue #109 · readium/ts-toolkit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

'copyWithLocations is not a function' bug #109

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

Open
bluefirepatrick opened this issue Mar 2, 2025 · 0 comments
Open

'copyWithLocations is not a function' bug #109

bluefirepatrick opened this issue Mar 2, 2025 · 0 comments

Comments

@bluefirepatrick
Copy link
Member

There is a bug in EpubNavigator.ts in syncLocation where it calls nearestPositions.first.copyWithLocations. On startup there are cases where the object 'nearestPositions.first' exists but it has not had copyWithLocations added to it yet.

I submitted a draft PR that addresses this issue
#108

You may want to deal with the issue in a different way but this should at least help demonstrate it.

Image
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

1 participant
0