Skip to content

Warning: ReactClass: You're attempting to include a mixin that is either null or not an object. #20

@sadr0b0t

Description

@sadr0b0t

Hello, I'm trying to include react.animate to my react component

var React = require('react');
...
var MyComponent = React.createClass({
    mixins: [React.Animate],
...

Get warning on component load:

Warning: ReactClass: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got undefined.

And then error when try to make animation:

Uncaught TypeError: this.animate is not a function

If I try to make something like

var React = require('react');
React.Animate = require('react.animate');
...

I get

Uncaught TypeError: Cannot set property 'Animate' of undefined

in react.animate.js at

  React.Animate = {
...

I have my react js component in a separate js file, run JS app on Electron platform.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions