#953·popmotion

mixerFactory is not a function

Author: okrymusCreated Jan 13, 2023Updated Jan 13, 2023

How to fix the bug?

When I use this const mapper = interpolate([-2000, 0, 2000], [0.25, 1, 4], { clamp: true }); I got the error

interpolate.mjs:35 Uncaught (in promise) TypeError: mixerFactory is not a function
    at createMixers (interpolate.mjs:35:21)
    at interpolate (interpolate.mjs:83:20)
    at animate (index.mjs:27:33)
    at index.mjs?v=1962ad86:1516:16
    at index.mjs?v=1962ad86:80:24
    at new Promise (<anonymous>)
    at Proxy.start (index.mjs?v=1962ad86:79:12)
    at index.mjs?v=1962ad86:1511:26
    at Array.map (<anonymous>)
    at set (index.mjs?v=1962ad86:1509:65)