Closed ghost closed 4 years ago
What was the solution for this error? I am currently facing the same issue. Even when I add
selector: '#main'
as the id
EDIT: found a solution
For IDs just use the name. So if your element has id='main'
use selector='main'
instead of #main
Couldn't find a solution for css classes though, guess that wouldn't make much sense since classes can be duplicates. Maybe the docs should say ids instead of 'CSS selectors' 😒
adding
selector
as a css ID defined for a DOM element, throws error.And the HTML element it is supposed to be added to:
<main id="main"></main>
The error being thrown is:
Uncaught Root element is not defined