# Cannot compile component templates with custom name

**URL:** <https://discuss.emberjs.com/t/cannot-compile-component-templates-with-custom-name/16535>\
**Category:** Ember CLI\
**Created:** [May 9, 2019, 1:08pm UTC](https://discuss.emberjs.com/t/cannot-compile-component-templates-with-custom-name/16535 "2019-05-09T13:08:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![naomak](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/naomak/32/16465_2.png) [@naomak](https://discuss.emberjs.com/u/naomak)\
**Post date:** [May 9, 2019, 1:08pm UTC](https://discuss.emberjs.com/t/cannot-compile-component-templates-with-custom-name/16535/1 "2019-05-09T13:08:34Z")

</div>

Hi.

In project we have application structure with component pods like: app \> components \> my-component – my-component.js |-my-component-template.hbs

To find template with unusual name, we changed \_podTemplatePatterns() in our ember-cli-build.

```
app._podTemplatePatterns = function() {
    return this.registry.extensionsForType('template').map(function(extension) {
        return new RegExp(`.${extension}$`);
    });
};

```

After update from ember 3.3 to 3.4 template is not found and compiled any more. However it is found in template trees for template linter.

I checked requirejs.entries and template is really not there.

I looked into ember-app.js and ember-cli-htmbars, but found nothing which could help me.

I guess we could rename all the templates to template.hbs, so it is found and compiled, but i thought if I make it work, I would know the framework better and also how it works internally.
