Note that there are some explanatory texts on larger screens.

plurals
  1. PORequire.js + Backbone optimization
    text
    copied!<p>Good afternoon,</p> <p>I'm trying to optimize a source code based on Require.js and Backbone using r.js but I'm getting the following error during the compilation :</p> <pre><code>Tracing dependencies for: main Cannot optimize network URL, skipping: empty:.js TypeError: Cannot read property 'normalize' of undefined In module tree: main app router views/main_panel/event_details helpers/template_manager </code></pre> <p>My template_manager module does not try to access any 'normalize' property so I don't really understand what is that supposed to mean. Here's the entry point to my application as well as the require.js configuration.</p> <pre><code>require.config({ paths: { order: 'libs/requirejs-plugins/order', text: 'libs/requirejs-plugins/text', jQuery: 'libs/jquery/jquery', Underscore: 'libs/underscore/underscore', Backbone: 'libs/backbone/backbone', templates: '../templates', Sync: 'helpers/sync' } }); require([ 'app', 'event_manager', 'order!https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', 'order!libs/underscore/underscore-min', 'order!libs/backbone/backbone-min', 'helpers/objects_extension', 'helpers/date_extension', 'helpers/assets' ], function(App){ App.initialize(); }); </code></pre> <p>The application itself more or less follows what's in <a href="http://backbonetutorials.com/organizing-backbone-using-modules/" rel="nofollow">this tutorial</a>. My app.build.js file is as follow </p> <pre><code>({ appDir: "../", baseUrl: "js", dir: "../app-build", modules: [ { name: "main" } ], paths: { order: 'empty:', text: 'empty:', jQuery: 'empty:', Underscore: 'empty:', Backbone: 'empty:', templates: '../templates', Sync: 'helpers/sync' } }) </code></pre> <p>Thank you for your help.</p>
 

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