Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Uncaught Error: Target container is not a DOM element, react tutorial #175

@Boursler

Description

@Boursler

In the Meteor React tutorial after completing step 2.5, this error appears in the browser: Uncaught Error: Target container is not a DOM element.
image

I copy-pasted my code from the tutorial entirely, and I created the following files: imports/ui/App.js, imports/ui/Task.js.

I got the code to work by adding: import './main.html'; to main.js. If this is the proper fix, can this import statement be added to the tutorial? If not, is there a better alternative? I'm totally new to Meteor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions