{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/3426","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/3426/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/3426/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/3426/events","html_url":"https://github.com/angular/angular-cli/issues/3426","id":193699301,"number":3426,"title":"Error: SampleModule is not an NgModule","user":{"login":"beeman","id":36491,"avatar_url":"https://avatars.githubusercontent.com/u/36491?v=3","gravatar_id":"","url":"https://api.github.com/users/beeman","html_url":"https://github.com/beeman","followers_url":"https://api.github.com/users/beeman/followers","following_url":"https://api.github.com/users/beeman/following{/other_user}","gists_url":"https://api.github.com/users/beeman/gists{/gist_id}","starred_url":"https://api.github.com/users/beeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeman/subscriptions","organizations_url":"https://api.github.com/users/beeman/orgs","repos_url":"https://api.github.com/users/beeman/repos","events_url":"https://api.github.com/users/beeman/events{/privacy}","received_events_url":"https://api.github.com/users/beeman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-06T07:11:10Z","updated_at":"2016-12-06T16:17:52Z","closed_at":null,"body":"### OS?\r\n\r\nmacOS Sierra\r\n\r\n### Versions.\r\n\r\n```\r\nangular-cli: 1.0.0-beta.22\r\nnode: 7.2.0\r\nos: darwin x64\r\n```\r\n### Repro steps.\r\n\r\n#### 1. Scaffold new app:\r\n\r\n```shell\r\n$ ng new angular-sample-app --skip-git --skip-npm --style=scss --inline-template\r\n$ cd angular-sample-app\r\n$ yarn\r\n$ git init\r\n$ git add .\r\n$ git commit -am \"Initial commit\"\r\n```\r\n\r\n#### 2. Add dependency to angular-sample-module\r\n\r\nThis source to this module can be found [here](https://github.com/beeman/angular-sample-module), and it's available on [npmjs](https://www.npmjs.com/package/angular-sample-module).\r\n\r\n```shell\r\n$ yarn add angular-sample-module\r\n```\r\n\r\n#### 3. Add new module to AppModule\r\n\r\n- Edit `src/app/app.module.ts`\r\n- Add dependency: `import { SampleModule } from 'angular-sample-module';`\r\n- Add `SampleModule` to the `imports` array\r\n- Edit `src/app/app.component.ts`\r\n- Add `<sampleComponent></sampleComponent>` to the template\r\n\r\n#### 4. Start ng serve\r\n\r\n```\r\n$ ng serve\r\n** NG Live Development Server is running on http://localhost:4200. **\r\n 10% building modules 2/2 modules 0 active(node:18364) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: SampleModule is not an NgModule\r\n(node:18364) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\r\n 20% building modules 84/84 modules 0 active\r\n```\r\n\r\n### The log given by the failure.\r\n\r\n```\r\n(node:17462) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: SampleModule is not an NgModule\r\n(node:17462) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\r\n```\r\n\r\n### Mention any other details that might be useful.\r\n\r\nDowngrading to the previous version of angular-cli makes it work:\r\n\r\n```\r\n$ npm install --save-dev angular-cli@1.0.0-beta.21\r\n```\r\n\r\nLink to a sample app showing the issue: https://github.com/beeman/angular-sample-app\r\n\r\nUsing `ng new angular-sample-app` without my custom parameters on version `1.0.0-beta.22` and `npm install` over `yarn add` yields the same results."},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/265193791","html_url":"https://github.com/angular/angular-cli/issues/3426#issuecomment-265193791","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/3426","id":265193791,"user":{"login":"shaahink","id":1635787,"avatar_url":"https://avatars.githubusercontent.com/u/1635787?v=3","gravatar_id":"","url":"https://api.github.com/users/shaahink","html_url":"https://github.com/shaahink","followers_url":"https://api.github.com/users/shaahink/followers","following_url":"https://api.github.com/users/shaahink/following{/other_user}","gists_url":"https://api.github.com/users/shaahink/gists{/gist_id}","starred_url":"https://api.github.com/users/shaahink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaahink/subscriptions","organizations_url":"https://api.github.com/users/shaahink/orgs","repos_url":"https://api.github.com/users/shaahink/repos","events_url":"https://api.github.com/users/shaahink/events{/privacy}","received_events_url":"https://api.github.com/users/shaahink/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T16:17:52Z","updated_at":"2016-12-06T16:17:52Z","body":"same here"}}
{"actor":{"display_login":"shaahink"}}