-
Notifications
You must be signed in to change notification settings - Fork 101
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
Imports broken since three.js update #47
Comments
Hey Daniel, thanks for letting me know. Glad you're finding the book useful! |
One of the best resources I've found so far. Using it frequently. I've taken one of your projects and use it as a template for all my new projects. I'd love to see you expanding the book with an advanced section to cover topics like custom shaders, NURBS objects and more, three.js offers so much. In case you need help, just ask me. I'm still learning all this stuff by doing, but I think I'm already good enough to contribute to such a project. |
Thank you so much for the amazing feedback 😁
I don't have time to do large amounts of work on this myself anymore, unfortunately. But I have been hoping that other people would add stuff so I'd love for you to contribute something. However please let me know before doing any large amounts of work - open up an issue here, or a discussion. We can work on the basic structure together and make sure it fits in with the rest of the book, or whether it would be better as a blog post or something else. |
By the way I'll keep this issue open until I actually fix it. Otherwise I'll forget 😅 |
Sure :) |
Has this been fixed? I notice the issue is still persistent in the live version. |
Unfortunately not, and I have not had time to work on this at all. I have not forgotten about it, it's just that real life has been getting in the way over the last few months 😅 I am open to PRs though if anyone else wants to have a go at fixing this. |
Hi Lewy!
First of all, congrats to your great book, I love it. Especially the modular approach. Unfortunately, since the most recent three.js updates, your cdn imports don't work anymore. First of all, the version you've linked to cannot be found anymore. After changing that to the newest version (0.137.5 as of time writing), the next error shows up:
index.html:1 Uncaught TypeError: Failed to resolve module specifier "three". Relative references must start with either "/", "./", or "../".
I assume that this is due to the newly introduced import mapping, which isn't represented in your source codes yet. Adding this snippet:
to the index.html file solved this issue, but now the next error states that there is an
Uncaught SyntaxError: The requested module '/-/[email protected]/dist=es2019,mode=raw/examples/jsm/controls/OrbitControls.js' does not provide an export named 'default'
Please be so kind and update your ressources, which I use as a starting point for all of my three.js projects now.
Best regards,
Daniel
The text was updated successfully, but these errors were encountered: