simontonsoftware / s-libs

A collection of libraries for any of javascript, rxjs, or angular.
MIT License
43 stars 5 forks source link

Angular app with angular 14 won't compile with mixins #93

Closed njourdain closed 1 year ago

njourdain commented 1 year ago

Related issue : https://github.com/microsoft/TypeScript/issues/30355

Compiling code with a mixin that contains private or protected properties will fail with TS4094 error. As a workaround, I copied the used mixins and just made the private properties public, which is not ideal.

I also tried setting "declaration": false in my tsconfig but there was no change.

ersimont commented 1 year ago

I think I'll need some more info to be able to reproduce and fix the error you encountered. For example, here is an Angular 14 app of mine that uses mixins from s-libs, and it compiles.

njourdain commented 1 year ago

Closing this issue as I cannot reproduce