Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
This repository was archived by the owner on May 7, 2025. It is now read-only.

Uncaught Error: See almond README: incorrect module build, no module name #415

@BrunoAndroidDev

Description

@BrunoAndroidDev

This issue is a Question

I have difficulties to update the Readium package embedded in an Android application.
First, the application embeds the version 0.17 of the readium-shared-js lib. Because of the issue #398, I want to upgrade this package to the last version, ie. 0.27.
I'm not a JS developer and I notice that the code architecture has changed; So, it's difficult for me to correctly do the migration.
When I want to display an ePub inside my webview, I've got errors in my console linked to the almond module (see the observed module part). Regarding the almong README, it means that there is a define()'d module, but it is missing a name. But, as far as I understand, some file in the shared-js lib in the js are not complaint with this rule. For example: globalsSetup.js, globals.js, helpers.js, plungins_controller.js, some files in the views package, some in the models package, etc.

If it can help, I'm using the single bundle of readium-shared-js:

    <!-- main code bundle, which includes its own Almond AMD loader (no need for the full RequireJS library) -->
    <script src="shared-js/build-output/single-bundle/readium-shared-js_all.js"
            type="text/javascript"></script>

Is it something i've missed?

Thanks for advice.

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

See also #398

Observed behaviour

"Uncaught Error: See almond README: incorrect module build, no module name", source: file:[...]/shared-js/build-output/single-bundle/readium-shared-js_all.js (414)

Product

  • ePub reader Android application which use readium shared-js and android readium sdk

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions