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: 'GammaEncoding' is not exported from 'three'. #705

Closed
Uhmopt opened this issue Dec 25, 2021 · 1 comment · Fixed by pmndrs/three-stdlib#108
Closed
Labels
bug Something isn't working

Comments

@Uhmopt
Copy link

Uhmopt commented Dec 25, 2021

Hi

I am trying to use this package, however, after installing this package, the project can not be built.

It shows the following issues.


./node_modules/three-stdlib/nodes/core/NodeBuilder.js
Attempted import error: 'GammaEncoding' is not exported from 'three'.

image

I did not have any code related to this package excluding a line of simple import.

import { PerspectiveCamera, PositionalAudio } from "@react-three/drei";

Does it occur only to me?

Please help me.

@Uhmopt Uhmopt added the bug Something isn't working label Dec 25, 2021
@RenaudRohlinger
Copy link
Member

Hello@Uhmopt. It's because the GammaEncoding has been removed in the latest version of threejs (0.136.0).
Temporary you can go back to 0.135.0 to fix the issue while we are updating three-stdlib which is a dependency of Drei.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants