I recently followed this guide to learn how to create an angular library and publish it for my own use: https://medium.com/@nikolasleblanc/building-an-angular-4-component-library-with-the-angular-cli-and-ng-packagr-53b2ade0701e
After packing the library and referencing it from my own angular project, I came up with this error: NullInjectorError: No provider for NgZone.
When I try to inject NgZone in my controller, without referencing the component in my library which is also injecting it, my project works just fine. However, when I try to reference the library component in my view, it no longer works!
I've spent the whole day trying to figure this out, however there's little to no information regarding this error, and I believe it has nothing to do with NgZone but rather something i overlooked.
I'm not sure what kind of information i should provide to better troubleshoot this error, so please feel free to ask me.
Both my library and project reference Angular 5.0.0 and zone.js 0.8.12. You can find my library published on github under: https://github.com/lakylekidd/skating-library
Any help would be appreciate it, it is driving me crazy!!
Thank you in advance, Billy