bundling a feature using ngrx selectors as a reusable library with ng-packagr
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
What is the current behavior?
When bundling an Angular 5 module exposing selectors with ng-packagr I get errors with Dictionnary cannot be named.
This all works fine when module is embedded in an app. Only the packaging fails
Expected behavior:
Would expect this to work.
When replacing build-in selector functions by equivalent from Reselect there are no issues with the bundling
Minimal reproduction of the problem with instructions:
Create a minimal Angular project using ngrx and exposing selectors so that users of reusable library can access them and build lib using ng-packagr
Please provide an actual reproduction of the issue. This is a TypeScript issue https://github.com/Microsoft/TypeScript/issues/9944
what you mean by reproduction ? if you referring to an example, then imagine having an Application that supports white-lableing, each feature you will have in a separate module, that you would like to re-use , depending on your core app configuration. I am for example how do you create a feature with state in a reusable module using ng-packagr, or whatever tooling. For example having a product feature, that you can npm install that contains everything to do with product and has also it own child state.