View Single Post
Old 06-29-2021, 06:08 PM   #5
avnermoshkovitz
Member
avnermoshkovitz began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Jun 2021
Device: Any ereader for Android or iOS
Ok, to be exact, the error is:
Code:
Failed to resolve module specifier "./mydir/myscript.js". Invalid relative url or base scheme isn't hierarchical
I googled this error message and found this link that seems to be related to my problem.
I think that the problem is more general (and the root cause is not Calibre Content Server)
I think that the Calibre Reader and Calibre Content Server are using different technology stacks.

I'm not familiar with both tools, but it looks like:
  • Calibre Reader - uses I'm not sure what (I would love to know how ebook reader operates on html5, CSS and Javascript, without having to have a running web server)
  • Calibre Content Server - uses a web server context.
    and with the web server context, the imported javascript module "./mydir/myscript.js" has wrong relative path.

Quote:
Use the calibre content server, it has a builtin reader that is based on the same codebase as the calibre viewer.
Given your comment, I expected that Calibre Content Server, would just work viewing the ebook similar to how Calibre Reader views it.
Do I need to do something extra for Calibre Content Server to work the same as Calibre Reader?

Thanks,
Avner
avnermoshkovitz is offline   Reply With Quote