Note that there are some explanatory texts on larger screens.

plurals
  1. POError after optimizing using requirejs optimizer
    primarykey
    data
    text
    <p>I am getting following error </p> <pre><code>uncaught exception: Please include Backbone.ModelBinder.js before Backbone.CollectionBinder.js </code></pre> <p>after doing</p> <p><code>node r.js -o build.js</code></p> <p>My build.js file is</p> <pre><code>({ "mainConfigFile": 'js/main.js', "name": "main", "include": [ "lib/require/require-with-comments.js" ], "exclude": [], "optimize": "uglify2", "out": "main-built.js", "insertRequire": [ "js/main" ] }) </code></pre> <p>My require config is as follows</p> <pre><code>require.config({ // The shim config allows us to configure dependencies for // scripts that do not call define() to register a module urlArgs: "bust=" + (new Date()).getTime(), shim: { 'underscore': { exports: '_' }, 'bootstrap': { deps: [ 'jquery' ] }, 'backbone': { deps: [ 'underscore', 'jquery' ], exports: 'Backbone' }, 'handlebars': { exports: 'Handlebars' }, 'handlebarsview': { deps: [ 'backbone', 'handlebars' ], exports: 'HandlebarsView' }, 'highcharts': { deps: [ 'jquery' ], exports: 'highcharts' } , 'collectionbinderview': { deps: [ 'backbone', 'jquery', 'underscore', 'modelbinderview' ] }, 'purl' : { deps : ['jquery'] } , 'select2': { deps: [ 'jquery' ], exports: 'select2' } , 'customSelect': { deps: [ 'jquery' ], exports: 'customSelect' } , 'datepicker': { deps: [ 'jquery', 'momentjs' ], exports: 'datepicker' } }, paths: { jquery: 'lib/jquery/jquery.min', bootstrap: 'lib/bootstrap/bootstrap', underscore: 'lib/lodash/lodash.min', backbone: 'lib/backbone/backbone', text: 'lib/require/text', handlebars: 'lib/view/hacked-handlebars-1.0.0', handlebarsview: 'lib/view/backbone.handlebars', collectionbinderview: 'lib/view/Backbone.CollectionBinder', modelbinderview: 'lib/view/Backbone.ModelBinder', highcharts: 'lib/charting/highcharts', momentjs: 'lib/view/moment', select2: 'lib/select2/select2', customSelect: 'lib/customSelect/customSelect', datepicker: 'lib/view/datepicker', purl : 'lib/purl/purl' } }); </code></pre> <p>Can anyone please tell me what wrong am I doing?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload