Replies: 2 comments 3 replies
-
When using external libraries like react-three-drei (a library that provides useful helpers and abstractions for working with Three.js in React), it's important to ensure that you have the correct CDN link to include the required scripts Make sure to replace Skypack CDN: Skypack is another popular CDN that allows you to include npm packages easily. You can use the following CDN link for react-three-drei: <script type="module"> import * as drei from 'https://cdn.skypack.dev/react-three-drei@7.10.0'; window.drei = drei; </script>Again, replace It's worth noting that the specific version numbers mentioned above might not be the latest ones at the time you're reading this. Make sure to check the react-three-drei documentation or the project's GitHub repository to find the latest version and confirm the correct CDN link to use. If you continue to experience issues with importing specific functions like |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hello to you
Does anyone have a good CDN link that works for react-three-drei?
All the ones I'm using seem to be incomplete and I can't import especially functions like float or OrbitControls. I get an error msg when I try to use them. But "useGLTF" works perfectly.
Beta Was this translation helpful? Give feedback.
All reactions