The selector “my-app” did not match any elements

前端 未结 12 1158
逝去的感伤
逝去的感伤 2020-12-07 18:15

The problem is when I run my app, it works fine. But when I refresh it, most of the time I get below msg.

The selector \"my-app\" did not match any e

12条回答
  •  天涯浪人
    2020-12-07 18:39

    Django+Angular

    I had a custom index.html, not the one generated by angular CLI.

    I had this error because I placed the generated script files in the section instead of at the end of the closing tag (after the tags)

提交回复
热议问题