I am using Angularjs, Requirejs and the Coffeescript Codemirror mode.
I can see in the chrome network tab that coffeescript.js is loaded.
But I can’t get the mode set to “coffeescript” or “text/x-coffeescript”.
You could check whether CodeMirror is being loaded twice (and the mode is attaching itself to the one you’re not using). That’s a thing that requirejs is prone to. You can probably fix this by loading all the addons and modes with a codemirror/... prefix, rather than a relative path.
I’m not sure what you mean by
loading all the addons and modes with a codemirror/… prefix, rather than a relative path.
Now adding "assets/libs/codemirror/addon/merge/merge"
and codemirror is loaded twice.
and angular.js:12520 TypeError: CodeMirror.MergeView is not a function