readium / readium-js-viewer

👁 ReadiumJS viewer: default web app for Readium.js library
BSD 3-Clause "New" or "Revised" License
550 stars 186 forks source link

Locally deployed CloudReader encounters parsing(?) error in OPDS (?) #707

Closed rkwright closed 5 years ago

rkwright commented 6 years ago

This issue is a Bug

Related issue(s) and/or pull request(s)

See issue #706

Expected Behaviour

CloudReader should start normally, displaying the library

Observed behaviour

Instead, the CloudReader comes up with the library empty and shows an error in the console. The error in the console is:

rangy-core.js:376 Uncaught Error: required module 'ClassApplier' not found
at Module.init (rangy-core.js:376)
at Object.api.createModule (rangy-core.js:445)
at rangy-highlighter.js:24
at Object.execCb (require.js:1696)
at Module.check (require.js:883)
at Module.<anonymous> (require.js:1139)
at require.js:134
at require.js:1189
at each (require.js:59)
at Module.emit (require.js:1188)

Steps to reproduce

  1. Clone readium-js-viewer from the develop branch (0.31-alpha)
  2. Then build normally (npm run prepare:all)
  3. Start the build (npm run http)
  4. Observe that the library is blank (no books in the library)
  5. Check the console for the error

Test file(s)

None needed - running the CR is sufficient

Product

Readium CloudReader app

Additional information

Test on MacOS Sierra 10.12.6 on a MacBookPro with Chrome 67

danielweck commented 6 years ago

Works fine at my end with: npm run http http://127.0.0.1:8080/dev/index_RequireJS_no-optimize.html (tested in Chrome and Safari ... we are aware of an unrelated Firefox bug, see https://github.com/readium/readium-js-viewer/issues/696 )

Ric, what are the contents of your: 1) readium-shared-js/plugins/plugins.cson https://github.com/readium/readium-shared-js/blob/develop/plugins/plugins.cson 2) and readium-shared-js/plugins/plugins-override.cson ?

rkwright commented 5 years ago

Unable to subsequently reproduce this. It appears that it was a flaw in the cloning of the sandbox or related. A completely new sandbox works fine. Closing.