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

前端 未结 12 1153
逝去的感伤
逝去的感伤 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:57

    In your app.module.ts, if you have my-app in the bootstrap, comment or delete it.

    bootstrap: [ AppComponent, // my-app ]

提交回复
热议问题