Skip to content

doesn't support ie11 #93

Closed
Closed

Description

@fred8617

image

Activity

  1. fred8617 commented on Sep 25, 2019

    @fred8617
    Author

    i need to add these polyfills
    import 'promise-polyfill/src/polyfill';
    import 'unfetch/polyfill';
    import 'abortcontroller-polyfill'
    import 'url-search-params-polyfill';

  2. iamthesiz commented on Sep 25, 2019

    @iamthesiz
    Collaborator

    Will hop on this soon

  3. iamthesiz commented on Sep 27, 2019

    @iamthesiz
    Collaborator

    @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!

  4. iamthesiz commented on Feb 26, 2020

    @iamthesiz
    Collaborator

    I'm so excited I'm pretty sure I figured out a way to make this work.

  5. iamthesiz commented on Mar 6, 2020

    @iamthesiz
    Collaborator

    This might be fixed as of #196
    As soon as I get a windows machine I'll test this, but until then, anyone who has a windows machine who might be able to confirm that this works, please comment on here so I can close this.

  6. Akswii commented on Mar 8, 2020

    @Akswii

    It's not working for ie11 without the polyfills mentioned by @fred8617

  7. iamthesiz commented on Mar 9, 2020

    @iamthesiz
    Collaborator

    Mind submitting a PR @Akswii? I removed the Proxy so it shouldn't be too far off.

  8. Akswii commented on Mar 9, 2020

    @Akswii

    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 🙏

  9. iamthesiz commented on Mar 9, 2020

    @iamthesiz
    Collaborator

    @Akswii so you didn't need to add a polyfill for Object.entries?

  10. Akswii commented on Mar 10, 2020

    @Akswii

    image
    These are my current polyfills. I think a polyfill for Object.entries is included in one of the CRA polyfills.

  11. Akswii commented on Mar 11, 2020

    @Akswii

    image
    I double checked, Object.entries is not polyfilled with the react-app-polyfill, nor in any of the other packages as far as I can tell. Not sure if this is helpful or not @alex-cory

  12. iamthesiz commented on Mar 11, 2020

    @iamthesiz
    Collaborator

    @Akswii I'll make a branch, but could you pull down the branch and test it on your windows machine? Steps

    git clone git@github.com: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 use-http-cra-app/src/App.js and import use-http and test it in ie. I still need to make the ie-support branch so bare with me.

  13. Akswii commented on Mar 11, 2020

    @Akswii

    I had to do yarn build in use-http to make the test project work.

    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! 🔥

  14. iamthesiz commented on Mar 12, 2020

    @iamthesiz
    Collaborator

    I'm so excited

  15. iamthesiz commented on Mar 18, 2020

    @iamthesiz
    Collaborator

    @Akswii when you say the basic cra-app polyfill, you are saying put these in the useFetch.ts?

    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?

  16. Akswii commented on Mar 19, 2020

    @Akswii

    @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.

  17. Akswii commented on Mar 19, 2020

    @Akswii

    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.

  18. changed the title [-]don support ie11[/-] [+]doesn't support ie11[/+] on Mar 19, 2020
  19. iamthesiz commented on Mar 19, 2020

    @iamthesiz
    Collaborator

    So anyone trying to get this to work in IE, just add these lines to the top of your main/root App.js file.

    import 'react-app-polyfill/ie11'
    import 'react-app-polyfill/stable'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions