You have TS files in your node_modules. This really goes against how libraries should be packaged:
libraries should never ship their source .ts files.
The reason for this rule is that the TypeScript version your app isn't necessarily the same as the TS version your library uses. Different versions of TS can produce different output, and give different errors for the same input. They don't even support the same language features. So packaging libraries with TS sources will always break someone's project.
Why? Other people can explain better:
Source: https://github.com/angular/angular-cli/issues/8284#issuecomment-341417325