Production build dist error

Hi,

Building my first Ember app :). And for the first time I have run the build for production. The build complete successfully, but when I open the build in the browser I get the error ‘TypeError: n is null’ . I have tried to look trough the stack trace but all looks gibberish and deep in the core.

Using ember-cli@3.5.1

Is there a way to make the stack trace more readable? Here is a snippet of the line where the error is thrown:

}), a.add(73, function (e) {
  var t = e.stack,
  n = t.pop(),
  r = void 0,
  i = void 0
-->  y(n) ? i = r = null : r = F((i = n.manager).getCapabilities(n.state)),
  t.push({
    definition: n,
    capabilities: r,
    manager: i,
    state: null,
    handle: null,
    table: null
  })
}), a.add(74, function (e, t) {

Stack trace:

<anonymous>
a</e.prototype.evaluate
He</e.prototype.evaluateSyscall
He</e.prototype.evaluateInner
He</e.prototype.evaluateOuter
gt</e.prototype.next
vt</e.prototype.next
e/this.render
P
Bt</e.prototype._renderRoots
Bt</e.prototype._renderRootsTransaction
Bt</e.prototype._renderRoot
Bt</e.prototype._appendDefinition
Bt</e.prototype.appendOutletView
f</e.prototype.invoke
f</e.prototype.flush
p</e.prototype.flush
z</e.prototype._end
e/this._boundAutorunEnd

I did a deep dive in the stack trace and found something familiar to the template. The problem was that a not existing property was given to a component. So removed that and it works.

I find it strange that this gives no errors or warnings in development. I have tried to google for at least enabling warning message but only find an old Stackoverflow