-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
doesn't support ie11 #93
Comments
i need to add these polyfills |
Will hop on this soon |
@Fled8617 It sounds like you might be on a Microsoft computer since you're using IE. It's kind of a pain to test IE on mac. Would greatly appreciate if you could submit a PR! |
I'm so excited I'm pretty sure I figured out a way to make this work. |
This might be fixed as of #196 |
It's not working for ie11 without the polyfills mentioned by @fred8617 |
Mind submitting a PR @Akswii? I removed the |
Sorry, I don't have the time to look into it. Included the polyfills and got it working for my project. I appreciate your work @alex-cory 🙏 |
@Akswii so you didn't need to add a polyfill for |
@Akswii I'll make a branch, but could you pull down the branch and test it on your windows machine? Steps git clone [email protected]:alex-cory/use-http.git
cd ./use-http
git checkout ie-support
yarn
yarn link
cd ..
create-react-app use-http-cra-app
cd ./use-http-cra-app
yarn
yarn link use-http
cd ../use-http
npm link ../use-http-cra-app/node_modules/react
npm link ../use-http-cra-app/node_modules/react-dom
cd ../use-http-cra-app
yarn start Now just go into your |
I had to do After adding the basic cra-app polyfill it seems like your ie-support fix branch is working. No need for me to polyfill anything extra. Tested in internet explorer 11. Nice! 🔥 |
I'm so excited |
@Akswii when you say the basic cra-app polyfill, you are saying put these in the import 'react-app-polyfill/ie11'
import 'react-app-polyfill/stable' I might just put this in the documentation. If you need ie11 support, use these polyfills. Or... maybe I just import them, and just have them as devDependencies, then will just use them at build time. 🤔 Thoughts? |
@alex-cory correct. Yes you can do that / just have a link or reference to the react docs as they cover this if you want to be ie11 compatible. |
If people are going to start testing their react app on explorer then it will crash because of react issues before it reaches your fetch library. |
So anyone trying to get this to work in IE, just add these lines to the top of your main/root import 'react-app-polyfill/ie11'
import 'react-app-polyfill/stable' |
The text was updated successfully, but these errors were encountered: