generator-angular2-library icon indicating copy to clipboard operation
generator-angular2-library copied to clipboard

Error Consider replacing the function or lambda with a reference to an exported function

Open lucasvieceli opened this issue 7 years ago • 4 comments

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

lucasvieceli avatar Jul 25 '17 14:07 lucasvieceli

This library will have several modules, for now it only has one

lucasvieceli avatar Jul 26 '17 10:07 lucasvieceli

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.

broweratcognitecdotcom avatar Jul 27 '17 09:07 broweratcognitecdotcom

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 avatar Jul 28 '17 09:07 Davy-F

@Davy-F

not yet

lucasvieceli avatar Jul 28 '17 10:07 lucasvieceli