TypeError: Cannot read property 'replace' of undefined
scalvert opened this issue · 1 comments
scalvert commented
I noticed this issue by rerunning ember-lifeline's CI build, which runs with floating dependencies in one stage. The issue seems to originate with 0.2.3, which was following the addition of TS support.
Here's the CI job, which includes the stack: https://travis-ci.org/ember-lifeline/ember-lifeline/jobs/634394541
Pinning to 0.2.1 fixes the issue, but is obviously not ideal.
RobbieTheWagner commented
@scalvert sounds like the error is here
I am not sure under what circumstances the type would be undefined though. Perhaps we should just return empty string here if the type is unknown? I think providing type annotations may also solve your problem.