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

Error trying example


I am trying the sample on link above and getting an error. Any suggestion to resolve this issue?

AppComponent_Host.ngfactory.js? [sm]:1 ERROR Error: The selector "ej-sample" did not match any elements
    at DefaultDomRenderer2.push../node_modules/@angular/platform-browser/fesm5/platform-browser.js.DefaultDomRenderer2.selectRootElement (platform-browser.js:1074)
    at DebugRenderer2.push../node_modules/@angular/core/fesm5/core.js.DebugRenderer2.selectRootElement (core.js:24292)
    at createElement (core.js:20978)
    at createViewNodes (core.js:23216)
    at createRootView (core.js:23169)
    at callWithDebugContext (core.js:24177)
    at Object.debugCreateRootView [as createRootView] (core.js:23687)
    at ComponentFactory_.push../node_modules/@angular/core/fesm5/core.js.ComponentFactory_.create (core.js:21508)
    at ComponentFactoryBoundToModule.push../node_modules/@angular/core/fesm5/core.js.ComponentFactoryBoundToModule.create (core.js:9935)
    at ApplicationRef.push../node_modules/@angular/core/fesm5/core.js.ApplicationRef.bootstrap (core.js:18088)

3 Replies

VS Vinoth Srinivasan Syncfusion Team August 6, 2019 01:09 AM

Hi Rodrigo, 

Sorry for the inconvenience. 

The mentioned issue occurs when selector name is invalid. We need to pass the selector name which we have provided in our index.html inside the body tag as shown in below snap. So, could you please change your selector name as same as which you have provided in your index.html page to avoid the mentioned problem at your end. 



Also, we will consider changing this in our online documentation. 

Vinoth S. 

RL Rodrigo Luz August 6, 2019 07:20 AM

Thanks, it worked!

I am from Delphi+FastReport so I need to learn a lot yet ...

VS Vinoth Srinivasan Syncfusion Team August 6, 2019 07:30 AM

Hi Rodrigo, 

Thanks for your update. Please let us know if you require further assistance on this. 

Vinoth S. 

Live Chat Icon For mobile
Up arrow icon