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

CanvasRevealEffect does not work on react 19 bc cant import * as THREE from "three"; #6333

Open
2 tasks done
SultanAlzoghaibi opened this issue Jan 11, 2025 · 1 comment
Open
2 tasks done

Comments

@SultanAlzoghaibi
Copy link

SultanAlzoghaibi commented Jan 11, 2025

Feature description

CanvasRevealEffect does not work on react 19 bc cant import * as THREE from "three";

even if you npm install --force framer-motion clsx tailwind-merge three @react-three/fiber
it wont work

Screenshot 2025-01-11 at 3 16 34 PM

Affected component/components

component/ui/canvas-reveal-effect

Additional Context

even if you npm install --force framer-motion clsx tailwind-merge three @react-three/fiber
it wont work

next.js 15 and react 19 I'm on

Before submitting

  • I've searched for existing issues and PRs
  • I've made research efforts and searched the documentation
@sanghyoLe
Copy link

Try installing @types/three as a dev dependency:

npm install --save-dev @types/three

This should resolve the TypeScript declaration errors for the Three.js module.

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

No branches or pull requests

2 participants