pmndrs / react-spring

✌️ A spring physics based React animation library
http://www.react-spring.dev/
MIT License
28.11k stars 1.19k forks source link

minification #682

Closed a-m-dev closed 5 years ago

a-m-dev commented 5 years ago

🐛 Bug Report

when i run yarn build with create react app , i got this error

Failed to minify the code from this file: 

    ./node_modules/react-spring/renderprops.js:13 

but when i run yarn start every thing is ok.

To Reproduce

boot up create react app and install react-spring. use it and build the project to get it...

Expected behavior

just build successfully...

Environment

drcmda commented 5 years ago

Do you use terser? The old uglify cannot minify modern javascript, it's been deprecated.

aleclarson commented 5 years ago

Correct me if I'm wrong, but this seems like a problem with CRA.

alphakennyn commented 5 years ago

I'm getting a similar issue:

Failed to minify the code from this file:
   ./node_modules/react-spring/web.js:7

for "react-spring": "^8.0.27"

myhendry commented 4 years ago

Hi. Any solution to this issue? i get this error when i run yarn run build

Failed to minify the code from this file:

    ./node_modules/react-spring/web.js:7 
alphakennyn commented 4 years ago

@myhendry use CRA version 3+

josh231101 commented 3 years ago

I am having a lot of troubles upgrading react-scripts :-1: Same problems as you man, any help?

Hi. Any solution to this issue? i get this error when i run yarn run build

Failed to minify the code from this file:

    ./node_modules/react-spring/web.js:7