title: Module name has not been loaded yet for context using RequireJS text plugin
body: <p>I'm using <a href="https://github.com/requirejs/text" rel="nofollow noreferrer">text.js</a> to load templates and I'm getting an error on  </p>
  
  <pre><code>require('text!templates/categories.html')
  </code></pre>
  
  <p>the error is </p>
  
  <pre><code>Uncaught Error: Module name "text!templates/categories.html_unnormalized2" has not been loaded yet for context: 
  </code></pre>
  
  <p>Have a look at my view section in the require loading process of the template that's where the error is thrown.</p>
  
  <p>Project directory structure:</p>
  
  <pre><code>js
      /app
          ....
          views/categories
          templates/categories
      /lib
          /jquery
          /underscore
          /backbone
          /text
      /vendor
          /jquery-ui
          /fancytree
  </code></pre>
  
  <p>RequireJS configs:</p>
  
  <pre><code>require.config({
      // The shim config allows us to configure dependencies for
      // scripts that do not call define() to register a module
  
      shim: {
  
          underscore: {
              exports: '_'
          },
          backbone: {
              deps: [
                  'underscore',
                  'jquery'
              ],
              exports: 'Backbone'
          },
          'jquery-ui': {
              exports: "$",
              deps: ['jquery']
          },  
          'fancytree': {
              deps: ['jquery-ui']
          }, 
  
      },
      paths: {
          'jquery': '../lib/jquery/jquery',
          'underscore': '../lib/underscore/underscore',
          'backbone': '../lib/backbone/backbone',     
          'text': '../lib/text/text',
          'jquery-ui': '../vendor/jquery-ui/jquery-ui',
          'fancytree': [      
              '../vendor/fancytree/fancytree',
              '../vendor/fancytree/fancytree.table'
          ],      
      },
  
      baseUrl: '/js/app',
  
  });
  </code></pre>
  
  <p>view:</p>
  
  <pre><code>define(['jquery-ui', 'fancytree', 'require'], function(ui, fancytree, require){
  
      'use strict';
  
      var $ = require('jquery'),
          _ = require('underscore'),  
          Backbone = require('backbone'),
          tpl = require('text!templates/categories.html') /* this line here produces error loading text.js*/,
          template = _.template(tpl);
  
  
      return Backbone.View.extend({
          el: $('#tree'),
          initialize: function() {
  
              this.listenTo( this.collection, 'reset add change remove', this.render, this );
              this.collection.fetch();
          },
          initFancyTree: function() {
              console.log('tree');
              $('#fancytree').fancytree();
  
          },
          render: function() {
  
              console.log(this.collection.toJSON())
              this.$el.html(template());
              //this.initFancyTree();
              return this;
          }
      });
  })
  </code></pre>