ember-table icon indicating copy to clipboard operation
ember-table copied to clipboard

Build issue with latest embroider

Open akatz opened this issue 4 years ago • 0 comments

Embroider now throws an error if the string passed to hbs is not a string literal.

Build Error (OneShot)

ember-table/components/-private/row-wrapper.js: /Users/akatz/Source/project-repo-root/ember-table/components/-private/row-wrapper.js: hbs accepts only a string literal argument (This is an error on an internal node. Probably an internal error. Location has been estimated.)
  23 | });
  24 |
> 25 | const layout = hbs`{{yield api}}`;
     |                ^^^
  26 |
  27 | export default Component.extend({

This appears to be coming from here: https://github.com/embroider-build/embroider/blob/031ce6d8a3137f5df6106be26c336b92ed948717/packages/core/src/babel-plugin-inline-hbs.ts#L212

akatz avatar May 05 '21 03:05 akatz