当我将响应部署到heroku时,出现以下错误:
p listening on port 3000!
{ Invariant Violation: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at ba (/Users/alexei.mairyn/opensense-admin/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:10:312)
at r (/Users/alexei.mairyn/opensense-admin/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:11:166)
at a.render (/Users/alexei.mairyn/opensense-admin/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:44:191)
at a.read (/Users/alexei.mairyn/opensense-admin/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:41:58)
at renderToString (/Users/alexei.mairyn/opensense-admin/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:53:83)
at /Users/alexei.mairyn/opensense-admin/build/server.js:1:23661 name: 'Invariant Violation', framesToPop: 1 }
另外,当我启动命令yarn start:production时-我有相同的错误。
<Switch>
<DefaultLayout
isAuth={isAuth}
path="/meetings"
component={ConferenceContainer}
/>
<DefaultLayout
isAuth={isAuth}
path="/domains"
exact
component={Domains}
/>
<AuthLayout
path="/login"
exact
component={Login}
/>
<ConferenceLayout
isAuth={isAuth}
path="/:id/menu"
component={Menu}
/>
</Switch>