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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cannot read property 'viewContainerRef' of undefined (Searching with text in ejs-autocomplete control)

Thread ID:





144203 Apr 24,2019 03:16 PM UTC Apr 25,2019 05:21 AM UTC Angular - EJ 2 1
Tags: AutoComplete
Purvi Patel
Asked On April 24, 2019 03:16 PM UTC


I am using <ejs-autocomplete> autocomplete control. I have attached snap of .ts file and template file in which I have added code for autocomplete search
Everything is working good in local, i am using ng serve --o command to run the application. For building code have used command ng build --prod and put dist folder file to server, the problem is that autocomplete is not working on live url. It throws the error in console 'Cannot read property 'viewContainerRef' of undefined'.

Here is snap of error.


Prince Oliver [Syncfusion]
Replied On April 25, 2019 05:21 AM UTC

Hi Purvi, 

Greetings from Syncfusion support. 

This is a known issue in our end. The fix for this issue is included in the patch release version 17.1.42. Kindly refer to the following release notes section: https://ej2.syncfusion.com/angular/documentation/release-notes/17.1.42/#common 

We suggest you upgrade to the latest version to resolve the issue. 

Let us know if you need any further assistance on this. 



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon