title: Error encountered resolving symbol values statically. Calling function 'CreateCustomComponent', function calls are not supported
body: <p>I am getting below error when creating my custom component. </p>
  
  <blockquote>
    <p>Error encountered resolving symbol values statically. Calling function 'CreateCustomComponent', function calls are not supporte
    d. Consider replacing the function or lambda with a reference to an exported function, resolving symbol cus_input</p>
  </blockquote>
  
  <p>my file like as below. Any one please give me a answer for below my code ?</p>
  
  <pre><code>export class MyComponent {   
  
  constructor() {
     console.log("Component created");
  }
  }
  export function CreateCustomComponent( componentArgs: {
  selector: string,
  inputs: Array&lt;string&gt;,
  template: string 
  
   }): Type&lt;any&gt; {
  
  let comp = Component(componentArgs);
  return comp.Class({
      extends: MyComponent,
      constructor: []
  });
  }
  
  export let cus_input :any = CreateCustomComponent({selector: 'cus-inp',inputs : ["myinput"],template : '&lt;input [value]="myinput" /&gt;'})
  
  export const MY_INP_Component: any = [cus_input];
  </code></pre>
  
  <p>Importing like as below in "app.modeule.ts"</p>
  
  <pre><code> import { MY_INP_Component} from './customcomponent/core';
  
   import { AppComponent } from './app.component';
  
  
   @NgModule({
      imports: [BrowserModule, FormsModule, HttpModule,       RouterModule.forRoot(rootRouterConfig, { useHash: true })],
      declarations: [AppComponent, 
       MY_INP_Component
     ],
    bootstrap: [AppComponent],
  
     })
  export class AppModule { }
  </code></pre>
  
  <p>Here why m creating component dynamically means i have set of jquery plugins for that m creating component dynamically  and using these component inputs and outputs in jquery plugin.</p>