Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9185651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:19:45+00:00 2026-06-17T19:19:45+00:00

Here is my error: Uncaught NoTemplateError: Could not find template: ‘<!– HTML Template –>

  • 0

Here is my error:

Uncaught NoTemplateError: Could not find template: '<!-- HTML Template --> 
<div id="start_div">

<h2>Choose your path to ... // the rest of the template

It is telling me that there is no template but then it outputs the template that it said it could not find.

Here is my code:

require(["jquery", "marionette", "views/StartView" ],
function($, marionette, StartView) {

  var SCApp = new marionette.Application();

  SCApp.addRegions({
      mainRegion: "#center_court"
  });
  var startView = new StartView();
  SCApp.mainRegion.show(startView);
  SCApp.start();

}

Here is the StartView.js

define(["jquery", "marionette", "text!templates/startDiv.html"],

function($, marionette, template){

    var StartView = marionette.ItemView.extend({
       //template: "#start_div"
        template: template
    });

    // Returns the View class
    return StartView;

});

Can anyone see what I’m doing wrong? Do I need something for templating in the require method?

Any suggestion are greatly appreciated.

Andrew

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:19:46+00:00Added an answer on June 17, 2026 at 7:19 pm

    Usually Marionette search for a template inside the DOM with an ID equal to the one you reference in your view, so you have to change the loadTemplate from Marionette.TemplateCache in this way:

    Backbone.Marionette.TemplateCache.prototype.loadTemplate = function(templateId) {
    
        var template = templateId;
    
        if (!template || template.length === 0){
            var msg = "Could not find template: '" + templateId + "'";
            var err = new Error(msg);
            err.name = "NoTemplateError";
            throw err;
        }
    
        return template;
    };
    

    I actually don’t remember where I found this function, I can’t find it anymore in Marionette’s Wiki, anyway it’s working fine for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my brief HTML document. Why is Chrome Console noting this error: Uncaught
Here's my error: *** Uncaught remote exception! (Exceptions are not yet supported across processes.)
My Jquery code is recieving following error: Uncaught SyntaxError: Unexpected token ; Here is
Does somebody see error here. Whats wrong with this typedef A<B<T>::c> ?? template <const
I do not get any error here but i am failing to display anything
hello im am getting JS error : Uncaught SyntaxError: Unexpected identifier here <script type=text/javascript>
i get this error Parser Error Message: Could not create type 'charts.lineChartData'. Source Error:
I am getting this error: Uncaught Error: NOT_FOUND_ERR: DOM Exception 8 Here is my
I am getting this error Uncaught ReferenceError: loadNext is not defined (anonymous function) The
In my jquery, I am getting error Uncaught TypeError: object is not a function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.