Breeze, Require, and Knockout

Back to blog

If you load Breeze using Require and AMD, AMD looks for a module named ko

As is recommended best practice, knockout registers with require anonymously (i.e. using the filename as the module name).

So if your knockout file is knockout.js and you try to load Breeze via AMD, Breeze wont be able to find knockout.

The two options are,

Rename knockout.js to ko.js

Include the following map in your Require config,