title: Basic react-cube-navigation example returns TypeError
body: <p>I want to create an instance of the react-cube-navigation component, found <a href="https://www.npmjs.com/package/react-cube-navigation" rel="nofollow noreferrer">here</a>.</p>
  <p>However, when trying to run the given <a href="https://codesandbox.io/embed/react-cube-navigation-example-gngpz" rel="nofollow noreferrer">example</a>, React returns a TypeError:</p>
  <pre><code>TypeError: props.rotateY.to(function (x) {
          return &quot;scale is not a function. (In 'props.rotateY.to(function (x) {
          return &quot;scale(&quot; + getScale(x, scaleRange);
        })', 'props.rotateY.to(function (x) {
          return &quot;scale' is undefined)
  </code></pre>
  <p>And displays this block of code from the cube implementation:</p>
  <pre><code>  127 | return (React.createElement(animated.div, tslib_1.__assign({ className: &quot;Cube&quot;, style: {
    128 |         width: width + &quot;px&quot;,
    129 |         height: height + &quot;px&quot;,
  &gt; 130 |         transform: props.rotateY.to(function (x) { return &quot;scale(&quot; + getScale(x, scaleRange); }),
    131 | ^       perspective: perspective + &quot;px&quot;
    132 |     } }, bind),
    133 |     React.createElement(animated.div, { className: &quot;Cube__animated-container&quot;, style: {
  </code></pre>
  <p>I get a very similar error on Chrome and Firefox:</p>
  <p><code>TypeError: props.rotateY.to is not a function</code></p>
  <p>I know what the error message is saying, but I have no clue how to fix it. I believe there must be a fix that doesn't require diving into the cube implementation, since it works fine on codesandbox.</p>
  <p>Could it have anything to do with version numbers? The dependencies on my system have different versions to the example on codesandbox.</p>