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

fix(types): remove references to Shader type #1765

Merged
merged 2 commits into from
Dec 23, 2023

Conversation

Methuselah96
Copy link
Contributor

@Methuselah96 Methuselah96 commented Dec 23, 2023

Why

The types have errors when used with @types/three@0.160.0, because the Shader type was removed in @types/three@0.160.0 due it it being used in ways it wasn't intended to be used. The type errors are:

Error: ./node_modules/@react-three/drei/core/MeshDistortMaterial.d.ts(1,64): error TS2305: Module '"three"' has no exported member 'Shader'.
Error: ./node_modules/@react-three/drei/core/MeshWobbleMaterial.d.ts(1,64): error TS2305: Module '"three"' has no exported member 'Shader'.
Error: ./node_modules/@react-three/drei/core/useBoxProjectedEnv.d.ts(6,37): error TS2694: Namespace '"/home/runner/.yarn/berry/cache/@types-three-npm-0.160.0-e7f9e2774b-10c0.zip/node_modules/@types/three/build/three.module"' has no exported member 'Shader'.

What

Remove use of the Shader type with more suitable types.

Checklist

  • Ready to be merged

Copy link

vercel bot commented Dec 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 23, 2023 4:35am

Copy link

codesandbox-ci bot commented Dec 23, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit c14bfb2:

Sandbox Source
awesome-gagarin-5jq6v7 Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

@CodyJasonBennett CodyJasonBennett merged commit a82d0d4 into pmndrs:master Dec 23, 2023
4 checks passed
Copy link

🎉 This PR is included in version 9.92.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants