pmndrs / react-spring

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

[bug]: ./node_modules/@react-spring/shared/dist/react-spring_shared.legacy-esm.js 1023:7 #2228

Closed BasakKamil closed 10 months ago

BasakKamil commented 10 months ago

Which react-spring target are you using?

What version of react-spring are you using?

9.5.2

What's Wrong?

Hay guys xD I do not know what is going on.. I just trying install new version React-three/fiber and upgrade everything what system say that I need but I can not fix this problem still... pls help me xD

1

To Reproduce

I have only put 'OrbitControls' from React-three/drei in my code and system show this error

Expected Behaviour

I expect to see Geometry xD

Link to repo

https://github.com/BasakKamil/iMajster

joshuaellis commented 10 months ago

You probably need to enable optional chaining in your webpack config. There's not really much the library can do.

rounakcodes commented 10 months ago

I just installed @react-spring/web (version 9.7.3). I use optional chaining in many places in my create-react-app based application and it works.

But I am getting the same error after installing react-spring. Can anyone guide me if something different is required for npm packages for optional chaining?

rounakcodes commented 10 months ago

This worked: https://github.com/facebook/create-react-app/issues/8445#issuecomment-588545858