We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Angular2 build AoT error

Thread ID:

Created:

Updated:

Platform:

Replies:

129094 Feb 26,2017 11:46 PM Jun 15,2017 07:18 AM Angular 7
loading
Tags: General
Jemmy Lu
Asked On February 26, 2017 11:46 PM

I'm new to use the angular2 ,and install the package from https://github.com/syncfusion/ej-angular2
and finally I bundle for production :"ng build --prod --aot" and get error:"ERROR in Error encountered resolving symbol values statically. Calling function 'EJAngular2Module', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AppModule in D:/Documents/Projects/AdShopAdministrator/src/app/app.module.ts, resolving symbol AppModule in D:/Documents/Projects/AdShopAdministrator/src/app/app.module.ts"
Is there any way to resolve this ? thanks

Abinaya Subbiah [Syncfusion]
Replied On February 28, 2017 01:41 AM

Hi Jemmy, 

Thanks for contacting Syncfusion support. 

We already considered this “AOT support for Syncfusion Angular 2 components” to our feature request and We already working on to support AOT build with our Syncfusion Angular 2 components. This feature will be included in any of our upcoming release. 

We have also implemented seed applications, to quick-start with Syncfusion JavaScript Angular 2 components. Refer to the below documentation link for getting started with seed application.    
    
   
We also implemented Angular 2 sample browser using our JavaScript Angular 2 components.   
   

Please let us know if you need further assistance on this.   

Regards,   
Abinaya S

Jemmy Lu
Replied On March 2, 2017 11:25 PM

Thanks for replying!I would like to ask if I have to wait for the next release?because after execute "ng build --prod --aot" and I restart the CLI then run "npm start"  the AoT error continue occur. or there's something missed?
Thanks!

Abinaya Subbiah [Syncfusion]
Replied On March 3, 2017 02:02 AM

Hi Jemmy, 

Query:  I have to wait for the next release? 
 
As we stated in previous response the feature “AOT support for Syncfusion Angular 2 components” will be included in our upcoming release. So if you need ngc compiler, we request you wait for the release. We appreciate your patience until then. 

Query: I restart the CLI then run "npm start"  the AoT error continue occur. 
 
With angular-cli sample, we are also facing the issue “ERROR in Error encountered resolving symbol values statically. Calling function EJAngular2Moduel..” . We can resolve this compilation issue by auto compilation with sample changes. Since, we suggest you to edit and resave any component file to overcome this issue. Refer to the link for issue detail from angular-cli.  


Please revert us back if need further assist on this. 

Regards, 
Abinaya S 


Jemmy Lu
Replied On March 3, 2017 10:31 AM

I see that!thank you very much!

Abinaya Subbiah [Syncfusion]
Replied On March 6, 2017 04:10 AM

Hi Jemmy,   
   
Most welcome.  
Please revert us back if you need further assistance on this.  
   
Regards,   
Abinaya S  


Manik Kumar
Replied On June 15, 2017 05:25 AM

Hi Team Syncfusion,

Is there any update on this issue?

Regards,
Manik

Abinaya Subbiah [Syncfusion]
Replied On June 15, 2017 07:18 AM

Hi Manik, 

The issue "ERROR in Error encountered resolving symbol values statically. Calling function 'EJAngular2Module'…” due to AOT compilation. Now, the Syncfusion Angular components supports AOT compilation also we have updated our components with Angular version 4.x.x.  

We recommend you to refer the below link to seamlessly integrate ej-angular2@15.2.43 components with Angular CLI. 


We implemented Angular sample browser using Syncfusion Angular components.  

Sample Browser: http://ng2jq.syncfusion.com/  

Please revert us back if you need further assist on this. 

Regards, 
Abinaya S 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;