Skip to content

Complete the documentation about the use of a JavaScript Bundler #5

@guylan-dieu

Description

@guylan-dieu

I am trying to use webmscore in Angular 12 with WebPack 5.50.0.

It would be nice to complete the documentation with a working example to use webmscore with WebPack.

Without extra configuration, using WebMscore.load from ES6 import produce ReferenceError:

import WebMscore from 'webmscore';

async test() {
    await WebMscore.ready;
    const score = await WebMscore.load('mscx', data);
}

Uncaught ReferenceError: Path_to_my_project_node_modules_angular_devkit_build_angular_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0_ is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions