6

am getting the below issue while using my custom component.

Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing t he function or lambda with a reference to an exported function, resolving symbol getValue in E:/AOT/systemjs-aot-16 62901741/src/

core.ts

export function getValue(

 ):any{ return "";}

cus-component.ts

import { getValue } from './core.ts';
export let compTest = getValue();

app.module.ts

import { compTest } from './cus-component';

 @NgModule({
 imports: [BrowserModule, FormsModule, HttpModule,  RouterModule.forRoot(rootRouterConfig, { useHash: true })],
 declarations: [ HomeComponent,compTest ],
 bootstrap: [AppComponent]
})
export class AppModule { }
lokusking
  • 7,396
  • 13
  • 38
  • 57
Abinaya
  • 364
  • 2
  • 6
  • 16

1 Answers1

0

Just a guess, but perhaps it solves your problem:

export function getValue() {
    () => '';
}
David Ibl
  • 901
  • 5
  • 13