报错:

Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports

Element type is invalid: expected a string (for built-in components) or a class/function

原因:

Element type is invalid: expected a string (for built-in components) or a class/function

Element type is invalid: expected a string (for built-in components) or a class/function

把   default  删掉。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2022-01-10
猜你喜欢
  • 2021-07-22
  • 2021-04-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
相关资源
相似解决方案