readium / ts-toolkit

A toolkit for ebooks, audiobooks and comics written in Typescript
BSD 3-Clause "New" or "Revised" License
58 stars 8 forks source link

Error loading manifest TypeError: Cannot read properties of undefined (reading 'locations') #57

Open xibsked opened 15 hours ago

xibsked commented 15 hours ago

I have cloned the current develop branch and successfully compiled the test app. The app opens in the browser, and I can see parts of the UI. However, my publications are not loading, and I see the following error in the console.

image

Below screen comes on when it loads

image

Below is the manifest

"https://streamer.edrlab.org/pub/L3N0cmVhbWVyL21pc2MvZXB1YnMvd2FzdGVsYW5kLW90Zi1vYmYuZXB1Yg%3D%3D/manifest.json

HadrienGardeur commented 14 hours ago

The current version of the toolkit seems to expect to find a positions list which is missing from this example.

xibsked commented 7 hours ago

I am using r2-streamer-js, and I'm getting a manifest.json similar to the one I shared. The links node does not have any reference to the position list, as required by this ts-toolkit. How can I obtain the position list from the publication server?

danielweck commented 7 hours ago

hello, positionslist is not implemented by the r2-streamer-js

HadrienGardeur commented 6 hours ago

I recommend using the go-toolkit for your back-end for the time being, but we'll take this requirement into account for future revisions of the ts-toolkit and playground.

xibsked commented 5 hours ago

Thank you for the recommendation. However, using go-toolkit is challenging for us right now, as we have additional customizations built on top of r2-streamer-js. Could you please advise if there’s a way to retain r2-streamer-js in the backend as it currently is?

HadrienGardeur commented 4 hours ago

Sure, you could add the Positions List to r2-streamer-js, that's doable too.