Skip to content

Instantly share code, notes, and snippets.

@hayksaakian
Last active August 29, 2015 14:17
Show Gist options
  • Save hayksaakian/a019adf9fb970fd320fd to your computer and use it in GitHub Desktop.
Save hayksaakian/a019adf9fb970fd320fd to your computer and use it in GitHub Desktop.
magic move error
/home/hayk/node/OverRustle/node_modules/react-magic-move/modules/components/MagicMove.js:8
childrenWithPositions () {
^
SyntaxError: Unexpected token (
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/hayk/node/OverRustle/node_modules/react-magic-move/modules/index.js:1:80)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref.
at invariant (/home/hayk/node/OverRustle/node_modules/react/lib/invariant.js:42:15)
at Object.ReactOwner.addComponentAsRefTo (/home/hayk/node/OverRustle/node_modules/react/lib/ReactOwner.js:72:46)
at ReactComponent.Mixin.mountComponent (/home/hayk/node/OverRustle/node_modules/react/lib/ReactComponent.js:258:20)
at ReactCompositeComponentMixin.mountComponent (/home/hayk/node/OverRustle/node_modules/react/lib/ReactCompositeComponent.js:766:43)
at wrapper [as mountComponent] (/home/hayk/node/OverRustle/node_modules/react/lib/ReactPerf.js:50:21)
at ReactDOMComponent.ReactMultiChild.Mixin.mountChildren (/home/hayk/node/OverRustle/node_modules/react/lib/ReactMultiChild.js:195:42)
at ReactDOMComponent.Mixin._createContentMarkup (/home/hayk/node/OverRustle/node_modules/react/lib/ReactDOMComponent.js:260:32)
at ReactDOMComponent.Mixin.mountComponent (/home/hayk/node/OverRustle/node_modules/react/lib/ReactDOMComponent.js:182:14)
at ReactDOMComponent.wrapper [as mountComponent] (/home/hayk/node/OverRustle/node_modules/react/lib/ReactPerf.js:50:21)
at ReactCompositeComponentMixin.mountComponent (/home/hayk/node/OverRustle/node_modules/react/lib/ReactCompositeComponent.js:808:44)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment