sreenaths / em-table

Table component for Ember
MIT License
2 stars 3 forks source link

Ember 3 support #7

Open bibinchundatt opened 6 years ago

bibinchundatt commented 6 years ago

em-table seems to be not working with ember 3 and yarn. Could you please help

TypeError: _ember.default.Handlebars.SafeString is not a constructor

`define('em-helpers/components/em-breadcrumbs', ['exports', 'ember', 'em-helpers/templates/components/em-breadcrumbs'], function (exports, _ember, _emBreadcrumbs) { 'use strict';

exports.__esModule = true; exports.default = _ember.default.Component.extend({ layout: _emBreadcrumbs.default,

itemStyle: _ember.default.computed("items", function () {
  var itemCount = this.get("items.length");

  if (itemCount) {
    let widthPercent = 100 / itemCount;
    return new _ember.default.Handlebars.SafeString(`max-width: ${widthPercent}%`);
  }
}),`
sreenaths commented 6 years ago

Thanks for the message... will look into it soon.