Angular2: Dependencies Between Apps created with angular-cli
I am using the Angular2-cli to create two applications: MyFirstApp & MySecondApp . I whish MySecondApp to import MyFirstApp so I can reuse directive/service/component. When I import MyFirstApp , I have the following compilation error: Cannot find module 'MyFirstApp' . Here's how to reproduce : $ npm -v 3.9.3 $ node -v v6.2.1 $ npm list | grep 'angular' ├── @angular/common@2.0.0-rc.1 ├── @angular/compiler@2.0.0-rc.1 ├── @angular/core@2.0.0-rc.1 ├── @angular/http@2.0.0-rc.1 ├── @angular/platform-browser@2.0.0-rc.1 ├── @angular/platform-browser-dynamic@2.0.0-rc.1 ├── @angular/router@2.0.0-rc.1 ├─