Meteor-react Error: Target Container Is Not A Dom Element, After Fix
I copy+paste the code from : https://stackoverflow.com/questions/41514549/ Then, I fix error and change 'class' by 'id' so: main.html React Meteor Votin
Solution 1:
Basically, the problem occurs due to HTML rendering. When you create meteor app it comes up with the blaze by default & you are working on the meteor with react or meteor with angular. You solve this error by two methods.
Method 1 just add import statement in main.js
import './main.html'
;
Method 2 Preferrable as it is my choice
meteor remove blaze-html-templates
meteor addstatic-html
Solution 2:
If you removed blaze-html-templates
you need to add static-html
package to compile your index.html
and avoid this error (see Meteor Guide, end of paragraph):
meteor addstatic-html
Solution 3:
I had the same problem. This is how I solved it.
In your terminal type the following lines in the project directory.
meteor remove blaze-html-templates
meteor addstatic-html
Solution 4:
For me I just needed to import the .html file before I tried to render to the DOM.
import './main.html';
Solution 5:
meteor remove blaze-html-templates
meteor addstatic-html
Post a Comment for "Meteor-react Error: Target Container Is Not A Dom Element, After Fix"