-
-
Notifications
You must be signed in to change notification settings - Fork 910
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
IE 11 breaking with Version 8.3.0 #516
Comments
@KevinGruber this comes unexpected since the browser tests for IE11 did pass for the 8.3.0 release. How exactly are you using uuid? Can you provide a minimal reproducible example for the error, including the respective module bundlers etc.? This would help a lot in further debugging the issue. |
Hi @ctavan, Of course: And i found it now with a really small repo. Should I open a PR? |
Hi @KevinGruber. Thanks for providing further information. Unfortunately to me this still does not explain the issue. Normally, webpack should pick up the files from So my suspicion is that something about the webpack config might be odd. You could try the examples from https://github.com/uuidjs/uuid/tree/master/examples/browser-webpack (just run |
Hi @ctavan, i see what is "wrong", you specify browser as module keyword. our mainField order is: legacy, unpkg, browser, main, module for the es5 builds. I also saw you have browser specified, but I am not familiar with that syntax, are you overriding just certain files? I will try to change the order for main and module, but I fear it will break other packages. |
OK, this explains it. From your config the relevant This will effectively pick the CommonJS builds from I don't see a reason to specify All that said you are still revealing a small inconsistency with this package since we did not intend to break compatibility of the CommonJS build for old browsers. I'll look into this but I still see a lot of benefits of switching the |
I am trying right now if it still works with the switched order, We sadly need to change it, as we have internal libraries which we build for es5,es6 and cjs and those are then imported accordingly into our isomorphic application. Thanks I will close the Ticket than |
@KevinGruber one other idea would be to use |
Describe the bug
Since the minor version bump to 8.3.0 we experience problem sin IE11 with uuid.
Based on the error we get it pinpoints to the code which introduced there.
https://github.com/uuidjs/uuid/pull/479/files#diff-016d740d7835ede8d0af47fe304f7191R16
SCRIPT1006: ')' erwartet (expected)
How to reproduce
Use uuid with IE11.
Expected behavior
It doesn't throw an exception and stops code execution.
Runtime
Additional information
Works fine on other browsers.
We currently solved it with downgrading to 8.2.0.
But it took us quite some time to find the problem to be in uuid, as it was just a minor version bump.
Thanks for looking into it.
The text was updated successfully, but these errors were encountered: