manuelbieh / react-ssr-setup

React Starter Project with Webpack 4, Babel 7, TypeScript, CSS Modules, Server Side Rendering, i18n and some more niceties
MIT License
778 stars 202 forks source link

IE 11 does not work #118

Open kamrul-suhel opened 4 years ago

kamrul-suhel commented 4 years ago

Hi thank you for your wonderful work it is amazing repository & you are updating frequently. thank again. I just notice this package is not working on IE 11. I tried to change browser list but no luck. none of react link work properly it look rerender the page again. will you please help Thank you

ie11

zorgick commented 4 years ago

Hi! Unfortunately I cannot test your problem in ie 11, but what you can do is change configuration of your project. Firstly, delete this file .browserlistrc. Secondly, add this code in babel.config.js after 11th line browsers: '> 0.25%, ie 11', bundle your code and start it again.

Let me know, if it didn't help.

tomtom94 commented 2 years ago

Just use my setup and you are good to go :)

https://github.com/tomtom94/react-easy-ssr

You'll need to change this line https://github.com/tomtom94/react-easy-ssr/blob/master/babel.config.js#L12

from

targets: web ? 'defaults' : { node: process.versions.node }, // https://babeljs.io/docs/en/options#targets

to

targets: web ? ['defaults', 'dead'] : { node: process.versions.node }, // https://babeljs.io/docs/en/options#targets

Please IE11 is a dead browser checkout right here https://browsersl.ist