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
Issues with IE11 #100
Comments
I send you my sympathy if you still have to support IE in your company or with your app, unfortunately there is not much I can do to help here. As far as I can see on my side most demo examples at the exception of the multi-nested layout seem to be working fine. So I would think it is more a problem with your bundling/transpiling step rather than the lib itself. Why don't you include directly one of the transpiled version of the lib, for example commonjs. |
closing that for now as per comments above |
I ran to the same issue today. @arash87 you got this this error because react-reflex package.json has this:
so webpack will take Workaround for you is to import commonjs, as @leefsmp said:
@leefsmp according to this comment: webpack/webpack#1979 (comment) shouldn't you target es5 and es6 modules? Eg. Nice lib btw :) |
Awesome reply, thanks a lot! I will take a look at how |
I think package.json is correct, |
@wonskarol I ended up setting an alias in my webpack config to reference the commonjs build, instead of the es, as es is not transpiled to es5. My webpack config did not exclude the @leefsmp I can also confirm that the package.json is correct, meaning that |
This issue has already been asked previously. I will be as detailed as I can to provide enough information about the dev setup.
Here I will paste one experiment with create-react-app, but I have tried this with a custom webpack/react project, and the result is the same.
Below is a simple create-react-app index.js, that I think most are familiar with:
and here is the App.js
And here is the standard package.json
This runs fine in most browsers, except for IE 11. Console provides the following error:
and the syntax error its referring to is the following:
From the look of it I can only see that ES6 syntax has found its way to an ES5 transpiled bundle.
As mentioned above, I have done this experiment both with create-react-app and a custom webpack/react environment, and the output are the same for both.
Is there any additional configuration that needs to be done here?
The text was updated successfully, but these errors were encountered: