This is a migrated thread and some comments may be shown as answers.

Error: Target container in not a DOM element

2 Answers 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 18 Jan 2021, 08:48 PM

I am a beginner with js and react and i try in my environment to recreate a chart.

I have everything I need (package, react, etc) but I can't make it work the example code.

I know that the problem becomes from the last part of code (ReactDOM.render) but i don't know with certainty what is it.

What i doing wrong?

 

 

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 19 Jan 2021, 05:42 AM

Hello, Alex,

The error indicates that it cannot find a DOM element with the selector 'App'.

I see that the ChartContainer component is searching for `my-app1`. Please check if anywhere in the application, there is an App selector.

Also, ensure that the files are all saved and the application is refreshed, as it could be due to unsaved changes.

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Alex
Top achievements
Rank 1
answered on 19 Jan 2021, 04:13 PM

Thanks you very much Stefan , i did it! there were a problem with the name of selector from index.html

 

Thanks fot you support!!

Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Alex
Top achievements
Rank 1
Share this question
or