WinterCore / react-text-transition

Animate your text changes
MIT License
602 stars 26 forks source link

Not compatible with react-spring #61

Open janakapdj opened 1 year ago

janakapdj commented 1 year ago

It gives an error with react-spring

`node_modules/react-spring/node_modules/@react-spring/web/dist/esm/index.js SyntaxError: node_modules/react-spring/node_modules/@react-spring/web/dist/esm/index.js: Missing class properties transform.

1 | import{Globals as M}from"@react-spring/core";import{unstable_batchedUpdates as N}from"react-dom";import{createStringInterpolator as U,colors as D}from"@react-spring/shared";import{createHost as H}from"@react-spring/animated";var k=/^--/;function I(t,e){return e==null||typeof `

idindrakusuma commented 1 year ago

Hi @janakapdj Please update the react-text-transition to v3.1.0 first.

iulianapintilie2022 commented 10 months ago

i just did a new project without anything at all in it, just react-dom and this dependency and it throws this errror so clearly something is not right `/node_modules/@react-spring/shared/dist/react-spring_shared.legacy-esm.js 1023:7 Module parse failed: Unexpected token (1023:7) You may need an appropriate loader to handle this file type. | var missingUnit = !unitRegex.test(output[0]) && output.find(function (value) { | return unitRegex.test(value);

})?.replace(numberRegex, "");

| var i = 0; | return output[0].replace(numberRegex, function () {`

and i did use the latest v3.1.0🙈