Open davidmguerra opened 7 years ago
Any way to solve this issue? I'm getting this error two...
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 :)
I am getting the same error when running(ng build --prod), any solutions?
Related to this https://github.com/nekken/ng2-fullcalendar/issues/28 But not resolved after updating angular cli
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
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.