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

The official examples no longer working on iOS/iPadOS #27328

Closed
1GR3 opened this issue Dec 6, 2023 · 11 comments
Closed

The official examples no longer working on iOS/iPadOS #27328

1GR3 opened this issue Dec 6, 2023 · 11 comments

Comments

@1GR3
Copy link

1GR3 commented Dec 6, 2023

Description

None of the examples are working neither on iPhone nor iPad any more while the websites built on Three.js are still working fine.

Reproduction steps

1.try to open any of these https://threejs.org/examples/ on iPhone or iPad
2. not working

Code

// code goes here

Live example

Screenshots

No response

Version

0.159.0

Device

No response

Browser

No response

OS

No response

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 6, 2023

I've tested some examples for another issue yesterday on an iPad with iPadOS 17.1.2 and they work as expected.

What kind of device and OS version are you using? Also please verify if errors or warnings are printed in Safari's browser console.

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 6, 2023

Also, as mentioned in #27327 (comment), saying that something "does not work" is not helpful in software development.

You should always describe the error situation as detailed as possible. We can reopen the issue if you do so.

@Mugen87 Mugen87 closed this as completed Dec 6, 2023
@1GR3
Copy link
Author

1GR3 commented Dec 7, 2023

On an M1 iPad Pro (5th generation) running iPadOS v16.2, I get this kind of errors for every example I tried:
[Error] TypeError: Module specifier, 'three' does not start with "/", "./", or "../". Referenced from https://threejs.org/examples/webgl_animation_skinning_blending.html

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 7, 2023

Ah okay. That's because your device does not fully support import maps yet (see #26836). The issue should go away if you update your OS to at least 16.4.

@1GR3
Copy link
Author

1GR3 commented Dec 7, 2023

I could (and will eventually)update my iPad to 16.4. (and beyond) but I can't, for example update my iPhone anymore, and it is a shame that three.js which was running just fine on it won't be able to run any new projects which might be far less complex than the older ones. Is there a way to maintain the progress without breaking everything for those who're not running it on the latest and greatest devices/OS's? According to Statcounter, it means cutting out roughly 10% of the global users.

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 7, 2023

No sorry, we won't do that. We want to move forward without relying on polyfills and fallbacks even if this means a small number of devices will be excluded.

@1GR3
Copy link
Author

1GR3 commented Dec 7, 2023

What was the last version of three.js that was supported on iOS/iPadOS prior to v16.4?

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 7, 2023

It is not the version of three.js that causes the breakage. It is the missing polyfill in each example page. It has been removed with r157. If you add the following line back to the HTML, the example should work again:

<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>

@1GR3
Copy link
Author

1GR3 commented Dec 7, 2023

Thanks for clearing this out! I'm about to start a new project for a client and I'd like to insure it will be supported even on a bit older devices. What would be the easiest way to achieve that?

@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 7, 2023

It's best if you ask such a question at the https://discourse.threejs.org/. We focus here on bugs and feature requests.

@1GR3
Copy link
Author

1GR3 commented Dec 7, 2023

Thank you!

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

No branches or pull requests

2 participants