question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handlebars partials are not supported

See original GitHub issue

I’m invoking ember-template-lint via npx (to lint Handlebars *.hbs files) and I am getting a handful of the following error, but the rule name seems to be undefined, so I’m unsure how/if I can disable those errors:

$ npx ember-template-lint views/**/*.hbs

./views/confirm.hbs
  10:4  error  Handlebars partials are not supported: "{{> social_media_sharing_buttons" at L10:C4  undefined

./views/layouts/default.hbs
  27:6  error  Handlebars partials are not supported: "{{> subscribe_modal/subscribe_modal_wrapper" at L27:C6  undefined

...

And I have a .template-lintrc.js file that looks like this:

module.exports = {
  extends: 'recommended',

  rules: {
    'block-indentation': false,
    'self-closing-void-elements': false
  }
};

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:6
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
iwaduartecommented, Aug 15, 2022

Any direction on that?

0reactions
matijabobancommented, Nov 1, 2019

@rwjblue Unfortunately did not do the trick (just tested with 1.7.0).

Still getting the “Handlebars partials are not supported” error.

Example code:

...
<td class="wrapper">
            <h1 class="align-center">Title</h1>

            <!-- Contains a partial -->
            {{> _example_partial }}

            <p>Content</p>
            <p>{{ _example_vars.dynamic_content }}</p>

            <!-- Button component, same as a partial -->
            {{> button type='primary' align='center' url='#' title='Demo Button' }}

            <!-- Handlebars escaped for Mailgun -->
            {{> mg_if var='mailgun_var' }}
        </td>
...

LInting error returned:

{...}/src/emails/_example_email.hbs
  15:12  error  Handlebars partials are not supported: "{{> _example_partial" at L15:C12  undefined
...
Read more comments on GitHub >

github_iconTop Results From Across the Web

SyntaxError: Handlebars partials are not supported #11834
Handlebars files are not getting formatted when included partials. I searched it on google but no proper solution was found. Please fix this....
Read more >
How to solve handlebar partials are not supported in VS Code?
I am using prettier for formatting but during formatting hbs file i am getting error as SyntaxError: Handlebars partials are not supported ....
Read more >
Partials | Handlebars
Handlebars allows for template reuse through partials. Partials are normal Handlebars templates that may be called directly by other templates.
Read more >
Template Language—Handlebars — Eleventy
Does not process front matter in the include file. Partials (Relative Path), Not yet supported: {{> ./user}} looks for user.hbs in the template's...
Read more >
How to solve handlebar partials are not supported in VS Code?
I am using prettier for formatting but during formatting hbs file i am getting error as SyntaxError: Handlebars partials are not supported ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found