You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drei is importing LinearEncoding from three in ./core/SpotLight.js. LinearEncoding was removed in r162, and has been deprecated since r152. This causes an error when trying to build a web app with r162. For example, this is sample esbuild output:
Error: R] No matching export in "./node_modules/three/build/three.module.js" for import "LinearEncoding"
./node_modules/@react-three/drei/core/SpotLight.js:3:76:
3 │ ...enderTarget, RGBAFormat, LinearEncoding, ShaderMaterial, DoubleS...
╵ ~~~~~~~~~~~~~~
1 error
Relevant code:
N/A
Suggested solution:
The naive solution would be to replace encoding: LinearEncoding with colorSpace: LinearSRGBColorSpace. However, this would be a breaking change because I don't believe colorSpace: LinearSRGBColorSpace support was added until r152, and drei claims to support r137.
I'm happy to create a PR, but didn't know whether this should be a breaking change or if you have some clever way to avoid that.
The text was updated successfully, but these errors were encountered:
three
version: 0.162.0@react-three/fiber
version: N/A@react-three/drei
version: 9.99.5node
version: N/Anpm
(oryarn
) version: N/AProblem description:
drei is importing
LinearEncoding
fromthree
in./core/SpotLight.js
.LinearEncoding
was removed in r162, and has been deprecated since r152. This causes an error when trying to build a web app with r162. For example, this is sample esbuild output:Relevant code:
N/A
Suggested solution:
The naive solution would be to replace
encoding: LinearEncoding
withcolorSpace: LinearSRGBColorSpace
. However, this would be a breaking change because I don't believecolorSpace: LinearSRGBColorSpace
support was added until r152, and drei claims to support r137.I'm happy to create a PR, but didn't know whether this should be a breaking change or if you have some clever way to avoid that.
The text was updated successfully, but these errors were encountered: