Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with react-spring #61

Open
janakapdj opened this issue Feb 28, 2023 · 2 comments
Open

Not compatible with react-spring #61

janakapdj opened this issue Feb 28, 2023 · 2 comments

Comments

@janakapdj
Copy link

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
Copy link
Collaborator

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

@iulianapintilie2022
Copy link

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🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants