Skip to main content

All Questions

24 votes
2 answers
38k views

Syntax error in IE11 with Webpack, Babel and React

I'm getting a Syntax Error in my React + Redux project in Internet Explorer 11, but I have no idea why it's caused. I'm using Webpack and Babel to compile it. I tried using babel-polyfill and babel-...
IWRichard's user avatar
  • 241
17 votes
2 answers
9k views

How to remove arrow functions from webpack output

After running my code through webpack it contians arrow functions. I need the code to work in ie11 so I need to get rid of the arrow functions. I'm using babel-loader for all .js files. I wrote a ...
Bjørn Moholt's user avatar
15 votes
4 answers
20k views

ReactJS - SCRIPT1010: Expected identifier - Production build not running on IE11

I created a new project with create-react-app today. The production build is not running fine on IE11, the console shows following error: SCRIPT1010: Expected identifier The line it points to inside ...
Manu's user avatar
  • 10.8k
14 votes
2 answers
24k views

How to use babel/corejs3/webpack correctly for IE11?

With my current config (see below), I'm getting this error: [object Error]{description: "Argument ob...", message: "Argument ob...", name: "TypeError", number: -2147418113, stack: "TypeError: ...",...
Rhangaun's user avatar
  • 1,490
9 votes
1 answer
13k views

how can I use babel polyfill to support all IE11 issues with gulp

I've been piecing together support for IE11 by adding plugins for transform-object-assign and array-includes and now I'm getting a symbol error for using for of loops. Instead of just tackling them ...
turbo2oh's user avatar
  • 2,867
8 votes
1 answer
7k views

Babel not transpiling chunk-vendors for IE11, in Vue-CLI project

I have a Vue-CLI webapp that needs to support IE11. In package.json we have set: "browserslist": [ "> 1%", "last 2 versions", "not ie <= 8", "ie 11" ] and this seems to work ...
Steve Bennett's user avatar
7 votes
1 answer
17k views

How to enable async/await with babel with support for IE11

I am hoping to use async/await in my source code and have it transpiled by babel to something useable by >0.25% not dead. My head is spinning with the plethora of ways to attack this. Some are ...
Matthew Goulart's user avatar
7 votes
1 answer
4k views

webpack with babel-preset-env "last 2 versions" with internet explorer

Maybe I am a little naive. The README on babel-preset-env https://github.com/babel/babel-preset-env says: A Babel preset that compiles ES2015+ down to ES5 by automatically determining the Babel ...
LongHike's user avatar
  • 4,364
6 votes
0 answers
14k views

How to polyfill IE11 in NextJS project?

I'm trying to polyfill the project for IE11 but no matter what I do browser logs these errors: Dev mode: SCRIPT1002: Syntax error in _app.js (49004,30) 49004 const Component = props => (...
Michael Rerberg's user avatar
5 votes
1 answer
5k views

How to create IE11 Bundles with Webpack 5 and Babel 7

How can we compile modern JavaScript into backwards-compatible JavaScript bundles that can be used with Internet Explorer 11 (ie11)? Specifically, how can we do this with the latest versions of ...
anthumchris's user avatar
  • 8,878
4 votes
1 answer
5k views

Vue app blank page in IE 11 or lower even with polyfills

I have a Vue app running in Firefox, Edge, and Chrome, however, in IE 11 (or lower), I see a blank page. And in the console of IE is see something like SCRIPT1002: Syntax error app.js and SCRIPT5022: ...
Gilian's user avatar
  • 1,569
4 votes
1 answer
7k views

How to transpile dependencies with @vue/cli 4.3.1

I have an app that has to work in IE11 Some dependencies like lodash use fat arrows (=>) and i want to target them to transpile them in es5. I consulted many other posts that address that problem ...
François Pothier's user avatar
3 votes
1 answer
8k views

How to inline Rollup/Babel polyfills for IE11

I've been working on a PHP project for a while and the client has asked for IE11 support at the last possible minute. HTML/CSS problems I can deal with but my javascript was written modern syntax. So ...
Foodstuff's user avatar
3 votes
2 answers
2k views

SCRIPT5017 error on Internet Explorer 11, using webpack 4, babel 7 and react

So I am working on a website that is using react. I have been testing it in different browsers, and right now the only browser not working is the terrible Internet Explorer. When the page loads on ...
Nate Wessels's user avatar
3 votes
1 answer
2k views

Is there a way to setup webpack config to load specific core-js entries

DISCLAIMER: I'm not terribly familiar with webpack or babel outside of simple setup, so if the question isn't clear then I apologize and will do my best to offer further clarity. So, the situation ...
tganyan's user avatar
  • 613

15 30 50 per page
1
2 3 4 5 6