-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
IE11: SCRIPT1006: Missing ')' #1512
Comments
/~https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#webpack might fix your issue |
I have tried both solutions and none works :( |
Hi, Did you try the following workaround (related to the Intl.js polyfill)? Intl.__disableRegExpRestore() |
I've got the exact same issue also looking into it. I'm also seeing some es6 code that should have been transpiled. |
@foubei I think I've found the issue and probably it's caused by babel-loader automatically picking up babel config. In the I'm not sure if the Could you try adjust your webpack config like this: webpack.config.js:
|
I've tried your solution, but it didn't work ... sorry for my late reply PS: I've upgraded react-intl to latest version. |
@foubei it is removed from the latest version |
@foubei I had to do several things. For me the thing the finally fixed it was using It's definitely a transpile issue you'll need to address with your webpack config. |
@jesse-mm can you please share your configs? |
Expected behavior
Working on all browsers except IE 11
Current behavior
It's throwing this error on IE 11 (SCRIPT1006: Missing ')')
I noticed that the bug appears after I implement the IntlProvider
Step to reproduce for BUG REPORT
https://wechat.silentsystem.cn
babel.config.js:
webpack.config.js:
.browserslistrc:
Your Environment
npm ls react-intl
npm ls react
npm --version
node --version
The text was updated successfully, but these errors were encountered: