Javascript 创建react应用程序生成在服务器中不工作:错误:缩小react错误#130;

Javascript 创建react应用程序生成在服务器中不工作:错误:缩小react错误#130;,javascript,reactjs,build,create-react-app,build-error,Javascript,Reactjs,Build,Create React App,Build Error,我有一段createreact应用程序代码,问题是当我在localhost中运行应用程序时,它工作正常,但当我在服务器中运行构建时,它就不工作了 在为本地构建服务时也存在同样的问题 仅获取以下信息:( 您刚才遇到的错误全文如下: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined

我有一段createreact应用程序代码,问题是当我在localhost中运行应用程序时,它工作正常,但当我在服务器中运行构建时,它就不工作了

在为本地构建服务时也存在同样的问题

仅获取以下信息:(

您刚才遇到的错误全文如下:

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