Dev server syntax error in IE11
See original GitHub issueVersions
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:
- Created 6 years ago
- Reactions:2
- Comments:10
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The above commands returns
^3.0.0
but I am still having trouble. I have opened a issue for the same #9310This 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.