Title: "Please add a @NgModule annotation." error with AOT, full path vs short package.json `main` · Issue #6239 · angular/angular-cli · GitHub
Open Graph Title: "Please add a @NgModule annotation." error with AOT, full path vs short package.json `main` · Issue #6239 · angular/angular-cli
X Title: "Please add a @NgModule annotation." error with AOT, full path vs short package.json `main` · Issue #6239 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. Windows 7 @angular/cli: 1.0.2 node: 6.9.0 os: win32 x64 @angular/common: 4.1.1 @angular/compiler: 4...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. Windows 7 @angular/cli: 1.0.2 node: 6.9.0 os: win32 x64 @an...
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. Windows 7 @angular/cli: 1.0.2 node: 6.9.0 os: win32 x64 ...
Opengraph URL: https://github.com/angular/angular-cli/issues/6239
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"Please add a @NgModule annotation.\" error with AOT, full path vs short package.json `main`","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -\u003e please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\nWindows 7\r\n@angular/cli: 1.0.2\r\nnode: 6.9.0\r\nos: win32 x64\r\n@angular/common: 4.1.1\r\n@angular/compiler: 4.1.1\r\n@angular/core: 4.1.1\r\n@angular/forms: 4.1.1\r\n@angular/http: 4.1.1\r\n@angular/platform-browser: 4.1.1\r\n@angular/platform-browser-dynamic: 4.1.1\r\n@angular/router: 4.1.1\r\n@angular/cli: 1.0.2\r\n@angular/compiler-cli: 4.1.1\r\n\r\n### Repro steps.\r\nng serve works ok, but aot compilation fails in case:\r\nimport module like `import { Ng2FlatpickrModule } from 'ng2-flatpickr/lib/ng2-flatpickr.module.js';`\r\n -\u003e No errors\r\nimport module like `import { Ng2FlatpickrModule } from 'ng2-flatpickr`;\r\n -\u003e \"Please add a @NgModule annotation.\" error\r\n\r\n### The log given by the failure.\r\n\r\n\u003e ERROR in Unexpected value 'Ng2FlatpickrModule in .../node_modules/ng2-flatpickr/lib/ng2-flatpickr.module.js' imported by the module 'AppModule in .../src/app/app.module.t\r\n\u003e s'. Please add a @NgModule annotation.\r\n\u003e \r\n\u003e ERROR in ./src/main.ts\r\n\u003e Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D:\\Projects\\work\\unleesh-frontend\\src'\r\n\u003e @ ./src/main.ts 6:0-74\r\n\u003e @ multi ./src/main.ts\r\n\r\n### Desired functionality.\r\nThere should be no errors\r\n\r\n\r\n### Mention any other details that might be useful.\r\nHere is my fork https://github.com/FriOne/ng2-flatpickr\r\n\r\n","author":{"url":"https://github.com/FriOne","@type":"Person","name":"FriOne"},"datePublished":"2017-05-09T14:48:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/6239/angular-cli/issues/6239"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:696aa472-61a5-8883-9ea3-acc144212b4c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C67E:C3C33:619A51:8392EF:6973D69F |
| html-safe-nonce | 2ebe2b8c9cadb5a26bf1eaad5b5f7fd20c032790823958fb27c3a9ce8f92819b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjdFOkMzQzMzOjYxOUE1MTo4MzkyRUY6Njk3M0Q2OUYiLCJ2aXNpdG9yX2lkIjoiODcxMDk1NTQ5MzU4NjM1OTk2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 04c052ebb0d184225434a95041843a1e60c71aa8246dd2ff70eb74a536acf80b |
| hovercard-subject-tag | issue:227392394 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/6239/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dddbaac8fb4c7a5eea1f70a4453ebce79403590b1ce9526ccf9e6aed82d88e92/angular/angular-cli/issues/6239 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dddbaac8fb4c7a5eea1f70a4453ebce79403590b1ce9526ccf9e6aed82d88e92/angular/angular-cli/issues/6239 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Versions. Windows 7 @angular/cli: 1.0.2 node: 6.9.0 os: win32 x64 @an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FriOne |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4c466014c8820edcdcbef69f57f90d1c8041009ca459463b96b062ebca83c424 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b4cd3a8af1483283fd4c6bcf6e24fd9fc8ab0e78 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width