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

Attempted import error: 'addAfterEffect' is not exported from 'react-three-fiber'. #59

Closed
n1ru4l opened this issue Jul 16, 2020 · 5 comments

Comments

@n1ru4l
Copy link

n1ru4l commented Jul 16, 2020

I am experiencing this issue with create-react-app when building for production:


Creating an optimized production build...
Failed to compile.

./node_modules/drei/dist/index.js
Attempted import error: 'addAfterEffect' is not exported from 'react-three-fiber'.
    "drei": "0.0.63",
    "react-three-fiber": "4.2.12",
    "three": "0.118.3",
@n1ru4l
Copy link
Author

n1ru4l commented Jul 16, 2020

Fixed by upgrading to react-three-fiber@4.2.17

@n1ru4l n1ru4l closed this as completed Jul 16, 2020
@neefrehman
Copy link

It might be worth reopening this issue as I've just discovered it exists on the react-three-fiber 5.0 beta.

i can see the only import of addAfterEffect from r3f comes from the Stats component.

@drcmda
Copy link
Member

drcmda commented Jul 20, 2020

you mean it does not exist for 5.0 beta?

the old stats had a horrible bug, it would essentially render the entire scene twice, once for visuals, once for measure-out. that made taxing stuff run with half the performance. and no way to fix it, other than extending r3f. :-(

@neefrehman
Copy link

neefrehman commented Jul 20, 2020

sorry, this import error exists in the beta, because addAfterEffect is not exported from it

@drcmda
Copy link
Member

drcmda commented Jul 20, 2020

published a new beta

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