question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dev server syntax error in IE11

See original GitHub issue

Versions

Angular CLI: 1.6.5 Node: 8.9.1 OS: win32 x64 Angular: 5.2.1 Internet Explorer: 11

Which pulls in: webpack-dev-server: 2.11.0

Repro steps

$ng new app
$cd app
$npm start

Navigate to http://localhost:4200 using IE11

Observed behavior

IE11 reports syntax error in console:

SCRIPT1002: Syntax error
vendor.bundle.js (43208,21)

The AOT production build is fine. Just the dev server which is a problem

Desired behavior

Be able to use dev server with IE11

Mention any other details that might be useful (optional)

The cause seems to be fat arrow es6 syntax that has sneaked into the webpack-dev-server output. See here: https://github.com/webpack/webpack-dev-server/issues/1278

So probably this will be fixed with the next update to webpack-dev-server

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

1reaction
ayush987goyalcommented, Jan 22, 2018

The above commands returns ^3.0.0 but I am still having trouble. I have opened a issue for the same #9310

0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax error in IE11 even with webpack-dev-server@2.11.1 ...
I'm having the same issue. npm update won't run. Maximum call stack exceeded. I'm seeing the error "Object doesn't support property or method...
Read more >
React 16: script1002 syntax error on IE11 and below
I want to reiterate what Jornve realized, as it took me a while to figure this out as well. The query-string package will...
Read more >
Syntax error 'SCRIPT1002' using internet explorer 11
What I have tried: i have tried changing versions of webpack , @wabpack/polyfill and babel-loader. but its not working. Same error i am...
Read more >
Syntax error in IE11 with React + Babel + Webpack-Reactjs
I found the issue. I'm using the module rambdax as one of my devDependencies, which contains source code written in ES6 syntax (not...
Read more >
Reactjs – Syntax error in IE11 with Webpack, Babel and React
IE11 isn't a fan of the eval() code that gets inserted by webpack for those, apparently. Using webpackConfig.devtool = 'none' (or one of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found