Meteor-React Error: Target Container is not a DOM element, after fix
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 1just add import statement in main.js
import './main.html'
;
Method 2 Preferrable as it is my choice
meteor remove blaze-html-templatesmeteor add static-html
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 add static-html
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-templatesmeteor add static-html