我正在使用react和npm组件包创建一个chrome扩展。我试图在页面上显示一条错误消息。当我触发错误消息组件时,我得到了一个错误。invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for但该错误消息组件在其他代码中工作正常。它只出现在我的chrome扩展中。
我正在使用react-testing-library测试一个简单的组件,它内部嵌套了一个react-router-dom的<Link>,我得到了这个错误: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got:undefined.