[Solved] Can’t find a datepicker that plays nicely with angular-meteor


Semi-Solution

Set AOT=1 in meteor environment variables.

Discussion

I was able to get ng-bootstrap working by sym-linking the library (to ensure that it is transpiled) and then building Meteor with AOT enabled.

I narrowed down the original failure to an area in the Angular JIT compiler code. I really don’t know a ton about how Angular-Meteor’s angular-compiler code works, in relation to Angular’s normal compile flow, so I can’t really get to the root of the problem. If anyone can provide a lower level explanation, I’d really appreciate it!


Update

In a different, but similar question a better semi-solution was provided by ironmanu on this question. It’s still not a perfect solution but it’s a usable bandaid.

The solution is to add require('reflect-metadata'); to the top of the module imports in app.module.ts. This solves the issue during JIT. I’m not sure why the Angular compiler doesn’t inherently take care of this issue, but this does the trick!

solved Can’t find a datepicker that plays nicely with angular-meteor