#Apple Clone with NextJS and Typescript

2 messages · Page 1 of 1 (latest)

torpid coyote
#

Hello everyone, I tri to create the new video to clone Apple Website to NextJS but i have a small issue.
github : https://github.com/ClementRosa/Apple_iphone

In ModelView.tsx the OrbitControls doesn't work, i expect the issues is the reference. The reference is set to null on the composant. I trie with Vite and the code works, it's a issue on NextJS ...
In Model.tsx i use on the eventSource the root element. Maybe it's not good on NextJS ? I trie to use __next but it's doesn't work to.

Someone use NextJS and Typescript on this project ?
Thank u !
Have a great day.

GitHub

Contribute to ClementRosa/Apple_iphone development by creating an account on GitHub.

torpid coyote
#

EDIT : I solve one part of my issue, i add a div in layout with the id root ! But i need to change color or size for the OrbitControler fork .... he don't work at the first time when i render the page for the first time.... it's suspicious