shlomiassaf / angular-library-starter

Your last library starter. A complete, @angular grade, library starter
MIT License
44 stars 12 forks source link

@scope/my-lib/index is imported by....but could not be resolved – treating it as an external dependency #7

Closed jogelin closed 7 years ago

jogelin commented 7 years ago
shlomiassaf commented 7 years ago

The /index is added to your code by the angular compiler, more accurately tsickle which is used by the angular compiler.

This is a known bug, see the examples pages, at the end of the page there is a comment about that.

The solution is not using an index.ts files as your entry point.

In that page you'll see examples of how to achieve that

jogelin commented 7 years ago

It works, thank you ! I didn't see your comment...

Just to summarize: