bokuweb-sandbox / react-motion-menu

[DEPRECATED] 🍔 A spring animation menu component for React.
http://bokuweb.github.io/react-motion-menu/
MIT License
333 stars 45 forks source link

Menu is not defined #31

Closed Yadro closed 7 years ago

Yadro commented 7 years ago

Error: index.js:174 Uncaught ReferenceError: Menu is not defined

After rename Menu to MotionMenu index.js:133 Uncaught TypeError: Cannot read property 'props' of undefined

Yadro commented 7 years ago

if this.props.children have one component then _toArray(this.props.children) return undefined (index.js:174)

Yadro commented 7 years ago

And last error )

stripStyle.js:16 Uncaught TypeError: Cannot read property 'val' of undefined
    at Object.stripStyle [as default] (stripStyle.js:16)
    at Object.getInitialState (Motion.js:55)
    at new <anonymous> (ReactClass.js:652)
    at ReactCompositeComponent.js:295
    at measureLifeCyclePerf (ReactCompositeComponent.js:75)
    at ReactCompositeComponentWrapper._constructComponentWithoutOwner (ReactCompositeComponent.js:294)
    at ReactCompositeComponentWrapper._constructComponent (ReactCompositeComponent.js:280)
    at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:188)
    at Object.mountComponent (ReactReconciler.js:46)
    at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:371)
bokuweb commented 7 years ago

@Yadro Sorry, it is fixed @v0.3.1. pleaase re-install react-motion-menu.