Theme Developer Tool – Error On Activation

Step 1: Edit the overrides.js File

  1. Locate the gulp/extension-mechanism/overrides.js file in the top-level directory of your theme developer tools installation.
  2. Add the following lines of code to the overrides.js file:

file_path = file_path.replace(extension_manifest.vendor + ‘/’, ”);
file_path = file_path.replace(extension_manifest.name + ‘/’, ”);

The following example shows where to place the new lines:

else if(ext === '.tpl')
{
    var aux = dst_path.split('/')
    ,   extensions_name = aux.length > 1 && aux[1]
    ,   file_path = aux.join('/')
    ,   extension_manifest = manifest_manager.getManifestByName(extensions_name);

    file_path = file_path.replace(extension_manifest.vendor + '/', '');
    file_path = file_path.replace(extension_manifest.name + '/', '');

    _.each(extension_manifest.templates.application, function(app, app_name)
    {
       var files = theme_manifest.templates.application[app_name].files;

       if(_.contains(app.files, file_path) && !_.contains(files, src_path))
      {
          files.push(src_path);
      }
   });

}

Step 2: Deploy and Activate Your Theme

Leave a comment

Your email address will not be published. Required fields are marked *