Element type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got undefined

发布时间 2023-10-13 14:48:18作者: 看风景就

原因就是组件引入错误,应该是

import {BillReverse} form '../xx'

写成了

import Reverse from '../xx'

两个错误

1. 没写大括号

2. 组件名错误

如何从打包后的文件分析导出内容格式,待解决