generator-angular2-library
generator-angular2-library copied to clipboard
Error Consider replacing the function or lambda with a reference to an exported function
ERROR in Error encountered resolving symbol values statically. Calling function 'CaixaAlertaModule', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AdicionarModule in /var/www/crm/teste8/src/app/admin/atividade/adicionar/adicionar.module.ts, resolving symbol AdicionarModule in /var/www/crm/teste8/src/app/admin/atividade/adicionar/adicionar.module.ts
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/var/www/crm/teste8/src'
@ ./src/main.ts 3:0-74
@ multi ./src/main.ts
in adicionar.module
import {CaixaAlertaModule} from "vieceli-core/caixa-alerta";
CaixaAlertaModule.forRoot(),
git: https://[email protected]/vieceli/vieceli-core.git
This library will have several modules, for now it only has one
I had this problem yesterday. In my case it was because there was a mismatch in ./package.json, ./src/package.json, and tsconfig.es5.json due to the fact that I renamed the folder and library and forgot to change "name" in both package.json, and "flatModuleId", and "flatModuleOutFile". Hope this helps.
Oops, just opened up the same issue: https://github.com/jvandemo/generator-angular2-library/issues/163
Did you have any luck solving this one, @lucasvieceli ?
@Davy-F
not yet