Opensheetmusicdisplay: TypeError: b[g][0].e is not a function[Learn More] osmd.min.js:8:525

Created on 26 Apr 2017  路  6Comments  路  Source: opensheetmusicdisplay/opensheetmusicdisplay

Not sure what's going on, but when I try this as per the website instructions:

<script src="osmd.min.js"></script>
<script>
var osmd = new OSMD("container-id");
osmd.load("http://downloads2.makemusic.com/musicxml/MozaVeilSample.xml").then(
  function() {
    osmd.render();
  }
);
</script>

I get this error:

Uncaught TypeError: b[g][0].e is not a function

at e (osmd.min.js:8)

at osmd.min.js:33

at osmd.min.js:8

Error occurs in both Firefox and Chrome.

Most helpful comment

The problem occurs due to minification in combination with the standalone browserify build, so you can always try the non-minified bundle if you're building locally. Also the CommonJS version from npm is working fine. Sorry for the inconvenience, I'll make sure to get to this as soon as possible.

All 6 comments

Hey! I'm able to reproduce on Firefox now, I will take a look, thanks for reporting.

I got the same Error QwQ, both on Firefox or Chrome. Does it occur when using 0.2.0? I'm trying to build 0.2.0 instead.

The problem occurs due to minification in combination with the standalone browserify build, so you can always try the non-minified bundle if you're building locally. Also the CommonJS version from npm is working fine. Sorry for the inconvenience, I'll make sure to get to this as soon as possible.

no longer relevant due to new build/tool chain.

Please update the version in https://github.com/opensheetmusicdisplay/opensheetmusicdisplay/releases.

Also, I'm trying to build my own from source, and it's very unclear what the right command is. None of these from package.json seem relevant:

    "build": "npm-run-all lint build:webpack",
    "build:doc": "cross-env STATIC_FILES_SUBFOLDER=sheets npm run build",
    "build:webpack": "webpack --progress --colors --config webpack.prod.js",
    "build:webpack-dev": "webpack --progress --colors --config webpack.dev.js",

Yes the releases lag a lot behind right now. Will do a new one the next days. The build scripts are for the develop branch which uses webpack 4 already while the latest release still uses grunt scripts and browserify

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sschmidTU picture sschmidTU  路  6Comments

cymhellfire picture cymhellfire  路  4Comments

fkruczek picture fkruczek  路  6Comments

vadymVolkov picture vadymVolkov  路  7Comments

clintmasden picture clintmasden  路  8Comments