andrewwakeling / requirejs-basketjs

Load requirejs modules using basket.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Just tried your example and got modules_md5 is not defined

dervalp opened this issue · comments

I was trying to test basketjs in my current project. I had a classic require setup, using the data-main requireJS attribute to point to a config file.

When I try to replicate your example in my project, I got

Uncaught ReferenceError: modules_md5 is not defined

Here is the code for loading the script located on the bottom of the page.

<script src="/basket.js" type="text/javascript"></script>
<script src="/require.js" type="text/javascript"></script>
<script>
    basket.require({ url: '/basket-loader.js', key: 'basket_loader', unique: 1 })
    .then(function () {
      basket.require({ url: '/main.js', unique: 1 })
    })
</script>

Any idea?

Forget it, I did an error but it was cache in the LocalStorage and I forgot to clear my local storage, stupid me !