Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

The selector "app" did not match any elements #542

@hongbo-miao

Description

@hongbo-miao
  • I'm submitting a ...
    bug report
  • What modules are related to this Issue?
  • express-engine
  • grunt-prerender
  • gulp-prerender
  • hapi-engine
  • universal-next
  • universal
  • webpack-prerender

Just my guess

  • Do you want to request a feature or report a bug?
    report a bug
  • What is the current behavior?
    It shows The selector "app" did not match any elements on server side (terminal), the client side works well.
  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem by creating a github repo.
    Here is a small repo of the bug: https://github.com/Hongbo-Miao/universal-bug
    Just run npm i, then go to http://localhost:3000/ , you will see the error on the terminal.
  • Please tell us about your environment:
    Angular version: 2.0.0
    OS: Mac OS X
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
    I checked http://stackoverflow.com/questions/35644123/the-selector-my-app-did-not-match-any-elements but does not help.

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