Closed justintv90 closed 9 years ago
I got this error message when the code was running. Please fix it
Error: Invariant Violation: Server-side s need location, branch, param s, and components props. Try using Router.run to get all the props you need [0] [0] - invariant.js:44 invariant [0] [startkit]/[react-router]/[invariant]/invariant.js:44:15 [0] [0] - Router.js:254 [object Object].componentWillMount [0] [startkit]/[react-router]/lib/Router.js:254:34 [0] [0] - ReactCompositeComponent.js:228 [object Object].ReactCompositeComponentMixin. mountComponent [0] [startkit]/[react]/lib/ReactCompositeComponent.js:228:14 [0] [0] - ReactPerf.js:70 [object Object].wrapper [as mountComponent] [0] [startkit]/[react]/lib/ReactPerf.js:70:21 [0] [0] - ReactReconciler.js:38 Object.ReactReconciler.mountComponent [0] [startkit]/[react]/lib/ReactReconciler.js:38:35 [0] [0] - ReactCompositeComponent.js:247 [object Object].ReactCompositeComponentMixin. mountComponent [0] [startkit]/[react]/lib/ReactCompositeComponent.js:247:34 [0] [0] - ReactPerf.js:70 [object Object].wrapper [as mountComponent] [0] [startkit]/[react]/lib/ReactPerf.js:70:21 [0] [0] - ReactServerRendering.js:42 [0] [startkit]/[react]/lib/ReactServerRendering.js:42:27 [0] [0] - Transaction.js:134 ReactServerRenderingTransaction.Mixin.perform [0] [startkit]/[react]/lib/Transaction.js:134:20 [0] [0] - ReactServerRendering.js:39 Object.renderToString [0] [startkit]/[react]/lib/ReactServerRendering.js:39:24 [0] [0] - react.js:12 Object.callee$1$0$ [0] /var/www/node/startkit/app/utils/react.js:12:26 [0] [0] - runtime.js:61 tryCatch [0] [startkit]/[babel-core]/[regenerator]/runtime.js:61:40 [0] [0] - runtime.js:323 GeneratorFunctionPrototype.invoke [as _invoke] [0] [startkit]/[babel-core]/[regenerator]/runtime.js:323:22 [0] [0] - runtime.js:94 GeneratorFunctionPrototype.prototype.(anonymous function) [as next] [0] [startkit]/[babel-core]/[regenerator]/runtime.js:94:21 [0] [0] - index.js:41 Object.serve [0] [startkit]/[koa-static]/index.js:41:14 [0] [0] - GeneratorFunctionPrototype.next
Had pushed a commit that was incomplete. Everything should be working fine now.
I got this error message when the code was running. Please fix it
Error: Invariant Violation: Server-sides need location, branch, param s, and components props. Try using Router.run to get all the props you need
[0]
[0] - invariant.js:44 invariant [0] [startkit]/[react-router]/[invariant]/invariant.js:44:15 [0]
[0] - Router.js:254 [object Object].componentWillMount [0] [startkit]/[react-router]/lib/Router.js:254:34 [0]
[0] - ReactCompositeComponent.js:228 [object Object].ReactCompositeComponentMixin. mountComponent [0] [startkit]/[react]/lib/ReactCompositeComponent.js:228:14 [0]
[0] - ReactPerf.js:70 [object Object].wrapper [as mountComponent] [0] [startkit]/[react]/lib/ReactPerf.js:70:21 [0]
[0] - ReactReconciler.js:38 Object.ReactReconciler.mountComponent [0] [startkit]/[react]/lib/ReactReconciler.js:38:35 [0]
[0] - ReactCompositeComponent.js:247 [object Object].ReactCompositeComponentMixin. mountComponent [0] [startkit]/[react]/lib/ReactCompositeComponent.js:247:34 [0]
[0] - ReactPerf.js:70 [object Object].wrapper [as mountComponent] [0] [startkit]/[react]/lib/ReactPerf.js:70:21 [0]
[0] - ReactServerRendering.js:42 [0] [startkit]/[react]/lib/ReactServerRendering.js:42:27 [0]
[0] - Transaction.js:134 ReactServerRenderingTransaction.Mixin.perform [0] [startkit]/[react]/lib/Transaction.js:134:20 [0]
[0] - ReactServerRendering.js:39 Object.renderToString [0] [startkit]/[react]/lib/ReactServerRendering.js:39:24 [0]
[0] - react.js:12 Object.callee$1$0$ [0] /var/www/node/startkit/app/utils/react.js:12:26 [0]
[0] - runtime.js:61 tryCatch [0] [startkit]/[babel-core]/[regenerator]/runtime.js:61:40 [0]
[0] - runtime.js:323 GeneratorFunctionPrototype.invoke [as _invoke] [0] [startkit]/[babel-core]/[regenerator]/runtime.js:323:22 [0]
[0] - runtime.js:94 GeneratorFunctionPrototype.prototype.(anonymous function) [as next] [0] [startkit]/[babel-core]/[regenerator]/runtime.js:94:21 [0]
[0] - index.js:41 Object.serve [0] [startkit]/[koa-static]/index.js:41:14 [0]
[0] - GeneratorFunctionPrototype.next