Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issue when using --prod flag #345

Closed
rhino5oh opened this issue Oct 6, 2017 · 3 comments
Closed

Compilation issue when using --prod flag #345

rhino5oh opened this issue Oct 6, 2017 · 3 comments

Comments

@rhino5oh
Copy link

rhino5oh commented Oct 6, 2017

[X ] Bug report 
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit a support request here, please ask on https://stackoverflow.com/

Bug description / Feature request

When doing an "ng build --prod", I get the following error:

ERROR in C:/Users/Ryan/test/src/$$_gendir/node_modules/angular-calendar/dis t/esm/src/components/month/calendarMonthView.component.ngfactory.ts (15,21): Can not find module './calendarOpenDayEvents.component.ngfactory'.
ERROR in C:/Users/Ryan/test/src/$$_gendir/node_modules/angular-calendar/dis t/esm/src/calendar.module.ngfactory.ts (11,21): Cannot find module './directives /calendarTooltip.directive.ngfactory'.
ERROR in C:/Users/Ryan/test/src/$$_gendir/node_modules/angular-calendar/dis t/esm/src/components/day/calendarDayView.component.ngfactory.ts (16,21): Cannot find module './calendarDayViewEvent.component.ngfactory'.
ERROR in C:/Users/Ryan/test/src/$$_gendir/node_modules/angular-calendar/dis t/esm/src/components/day/calendarDayView.component.ngfactory.ts (18,21): Cannot find module './calendarDayViewHourSegment.component.ngfactory'.
ERROR in C:/Users/Ryan/test/src/$$_gendir/node_modules/angular-calendar/dis t/esm/src/components/month/calendarMonthView.component.ngfactory.ts (10,21): Can not find module './calendarMonthCell.component.ngfactory'.
ERROR in C:/Users/Ryan/test/src/$$_gendir/node_modules/angular-calendar/dis t/esm/src/components/day/calendarDayView.component.ngfactory.ts (10,21): Cannot find module './calendarAllDayEvent.component.ngfactory'.
ERROR in C:/Users/Ryan/test/src/$$_gendir/node_modules/angular-calendar/dis t/esm/src/components/month/calendarMonthView.component.ngfactory.ts (17,21): Can not find module './calendarMonthViewHeader.component.ngfactory'.
ERROR in C:/Users/Ryan/test/src/$$_gendir/node_modules/angular-calendar/dis t/esm/src/components/week/calendarWeekView.component.ngfactory.ts (14,21): Canno t find module './calendarWeekViewEvent.component.ngfactory'.
ERROR in C:/Users/Ryan/test/src/$$_gendir/node_modules/angular-calendar/dis t/esm/src/components/week/calendarWeekView.component.ngfactory.ts (17,21): Canno t find module './calendarWeekViewHeader.component.ngfactory'.
ERROR in C:/Users/Ryan/test/src/$$_gendir/app/calendar/calendar.module.ngfa ctory.ts (11,21): Cannot find module '../../../$$_gendir/node_modules/angular-ca lendar/dist/esm/src/directives/calendarTooltip.directive.ngfactory'.
ERROR in C:/Users/Ryan/test/src/$$_gendir/app/app.module.ngfactory.ts (37,2 2): Cannot find module '../../$$_gendir/node_modules/angular-calendar/dist/esm/s rc/directives/calendarTooltip.directive.ngfactory'.

Note: This only occurs when doing a prod build that performs AOT compilation. A regular "ng build" has no issues.

Minimal reproduction of the problem with instructions

do an "ng build --prod" with the versions of angular/angular-cli listed below

Versions

I am using version 0.21.2 of angular-calendar, and the following versions of angular/angular-cli:

angular/cli: 1.4.5
node: 6.9.5
os: win32 x64
angular/animations: 5.0.0-rc.1
angular/cdk: 2.0.0-beta.11
angular/cli: 1.4.5
angular/common: 5.0.0-rc.1
angular/compiler: 5.0.0-rc.1
angular/core: 5.0.0-rc.1
angular/forms: 5.0.0-rc.1
angular/http: 5.0.0-rc.1
angular/material: 2.0.0-beta.11
angular/platform-browser: 5.0.0-rc.1
angular/platform-browser-dynamic: 5.0.0-rc.1
angular/platform-server: 5.0.0-rc.1
angular/router: 5.0.0-rc.1
angular/compiler-cli: 5.0.0-rc.1
typescript: 2.5.3

Angular: 5.0.0-rc.1

Calendar library: 0.21.2

Browser name and version: N/A

@mattlewis92
Copy link
Owner

My gut says this is a bug with angular 5.x, as this lib works fine with AoT + angular 4.x. I will do some digging and see if I can find a related bug on the angular issue tracker.

@rhino5oh
Copy link
Author

rhino5oh commented Oct 9, 2017 via email

@mattlewis92
Copy link
Owner

I believe this PR will fix it, if it’s still an issue once it’s merged and released, let me know 😀 angular/angular#19601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants