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

Can there be a version of p5.js that works for Internet Explorer 11 (IE 11)? #4588

Closed
4 of 12 tasks
ghost opened this issue May 29, 2020 · 6 comments · Fixed by #4642
Closed
4 of 12 tasks

Can there be a version of p5.js that works for Internet Explorer 11 (IE 11)? #4588

ghost opened this issue May 29, 2020 · 6 comments · Fixed by #4642
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented May 29, 2020

Most appropriate sub-area of p5.js?

  • Color
  • Core/Environment/Rendering
  • Data
  • Dom
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Other (specify if possible)

Feature enhancement details:

@ghost ghost added the Enhancement label May 29, 2020
@welcome
Copy link

welcome bot commented May 29, 2020

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

@ghost ghost changed the title Support Is there a version of p5.js that works for Internet Explorer 11 (IE 11)? May 29, 2020
@ghost ghost changed the title Is there a version of p5.js that works for Internet Explorer 11 (IE 11)? Can there be a version of p5.js that works for Internet Explorer 11 (IE 11)? May 29, 2020
@limzykenneth
Copy link
Member

@stevenrays p5.js should still be working on IE 11. Is there something specific that is not working on IE 11 that you found?

@akshay-99
Copy link
Member

akshay-99 commented Jun 17, 2020

Hi, so while I was just checking the cross browser compatibility of things while working on the FES, I did come to know that p5.js 1.0.0 indeed does not work on IE 11. Version 0.9.0 seems to be the last version to work on IE 11. For all p5 versions after it, the initialization itself crashes.
image

The stacktrace of the error is

ReferenceError: 'Symbol' is undefined
at p5 (https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js:62900:19)
at _globalInit (https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js:62466:17)
at invokeCallback (https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js:33807:21)
at publish (https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js:33790:21)
at flush (https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js:33506:19)

Symbol is not supported by Internet Explorer.
It happens inside the p5() constructor. The error is caught in a try-catch block so it can't be seen on the console but can be seen using a debugger, but it prevents the constructor from calling setup().
The error happens on a line that that is not present in the source but in the final built version, probably added by Babel.

@limzykenneth
Copy link
Member

I don't know enough about babel to know why this is happening. @outofambit Can you have a look at this?

@outofambit
Copy link
Contributor

@limzykenneth yes, i can take a look at this! there's probably a small config tweak i need to make to babel. thanks for investigating this @akshay-99!

@outofambit outofambit self-assigned this Jun 17, 2020
@outofambit outofambit mentioned this issue Jun 18, 2020
5 tasks
@stevenraysimon
Copy link

stevenraysimon commented Aug 19, 2020

Yes, so here are some screenshots of what is happening for me in IE 11. I first received an error with p5.sound.js and then removed it, and got an unspecified error.
uspecified-error

@outofambit outofambit added this to the 1.3.1 milestone Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants