codepunkt/css-spring

Object.values is not a function

Closed this issue · 3 comments

I get the following error:

TypeError: Object.values is not a function
    at path/node_modules/css-spring/dist/css-spring.js:648:100

Here's the code I'm trying to run:

const spring = require('css-spring').default;
const springTest = spring({ left: '50px' }, { left: '250px' }, { preset: 'gentle' });

NVM, being an idiot!

Just needed a polyfill / babel

Glad the issue resolved itself! :-)