nekken / ng2-fullcalendar

95 stars 47 forks source link

Error compiling in production mode #32

Open davidmguerra opened 7 years ago

davidmguerra commented 7 years ago

When I compile in development (ng build) the project is compiled without errors.

But when I compile in production mode (ng build --prod) the following error is displayed:

ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in C:/Workspaces/ANGULAR/controle/node_modules/angular2-fullcalendar/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol OpaqueToken in C:/Workspaces/ANGULAR/controle/node_modules/angular2-fullcalendar/node_modules/@angular/core/src/di/opaque_token.d.ts, resolving symbol OpaqueToken in C:/Workspaces/ANGULAR/controle/node_modules/angular2-fullcalendar/node_modules/@angular/core/src/di/opaque_token.d.ts

ERROR in ./src/main.ts Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'C:\Workspaces\ANGULAR\controle\src' @ ./src/main.ts 6:29-76 @ multi ./src/main.ts

If the dependency angular2-fullcalendar is removed, the project compiles into production without errors.

terminaltor commented 7 years ago

Any way to solve this issue? I'm getting this error two...

BoyeMagnus commented 7 years ago

I am getting the error as well. Disabling AOT when compiling works. (ng build --prod --aot=false). But would like to see a AOT compatible version :)

NtsakoSambo commented 7 years ago

I am getting the same error when running(ng build --prod), any solutions?

amitgaur208 commented 7 years ago

Related to this https://github.com/nekken/ng2-fullcalendar/issues/28 But not resolved after updating angular cli

anuragsunmugam commented 7 years ago

any solution for this issue. I'm also getting the same issue: ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in E:/Angular Pro jects/m-travel-user/node_modules/angular2-fullcalendar/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol OpaqueTok en in E:/Angular Projects/m-travel-user/node_modules/angular2-fullcalendar/node_modules/@angular/core/src/di/opaque_token.d.ts, re solving symbol OpaqueToken in E:/Angular Projects/m-travel-user/node_modules/angular2-fullcalendar/node_modules/@angular/core/src/ di/opaque_token.d.ts

ERROR in ./src/main.ts Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'E:\Angular Projects\m-travel-user\src' @ ./src/main.ts 3:0-74 @ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts