出现这种错误是因为在React 中,组件的名字必须是大写字母开头,

常见错误地方有:

invariant violation:View config not found for XXX

或者

invariant violation:View config not found for XXX

以上是我在网络上搜集到的错误案例,而我的具体情况则更坑,以下是我的报错信息:

invariant violation:View config not found for XXX

具体原因如下:

invariant violation:View config not found for XXX

我在HomePage周围添加了单引号,这个是完全错误的,唉。。。也不知道手怎么就这么滴。。。。

 

总之解决了就好,本来以为是个大BUG ,结果折腾了半天还是粗心大意导致。以上。

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2021-12-19
  • 2022-12-23
  • 2021-10-19
  • 2021-12-27
  • 2021-08-07
  • 2022-01-02
猜你喜欢
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-09-17
  • 2021-05-16
相关资源
相似解决方案