Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev Env. not working with IE Edge and IE 11 #8118

Closed
sjsingh85 opened this issue Dec 9, 2019 · 1 comment
Closed

Dev Env. not working with IE Edge and IE 11 #8118

sjsingh85 opened this issue Dec 9, 2019 · 1 comment

Comments

@sjsingh85
Copy link

Describe the bug

I am trying to run my local dev environment with Create React App after updating to latest packages and it is throwing error in IE 11 and IE Edge.

Did you try recovering your dependencies?

Yes, did not help.

Which terms did you search for in User Guide?

IE, internet explorer errors

Environment

System:
OS: Windows 10 10.0.18362
CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
Binaries:
Node: 13.1.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.19.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.13.2 - C:\Users\ssingh\AppData\Roaming\npm\npm.CMD
Browsers:
Edge: 44.18362.449.0
Internet Explorer: 11.0.18362.1
npmPackages:
react: 16.12.0 => 16.12.0 (0.14.9)
react-dom: 16.12.0 => 16.12.0
react-scripts: 3.3.0 => 3.3.0
npmGlobalPackages:
create-react-app: Not Found

Steps to reproduce

npx create-react-app my-app
cd my-app
npm start
  1. Create an app using above given commands taken from https://create-react-app.dev/docs/getting-started
  2. After running the npm-start, opne the url in IE Edge or IE 11 browser.

Expected behavior

The app should just work

Actual behavior

Blank page with error in console - SCRIPT5022: SyntaxError 0.chunk.js (3874,1)

Per my research - reason for error is npm package: node-url - https://github.com/defunctzombie/node-url/blob/master/url.js#L88

The https://github.com/facebook/create-react-app/blob/master/packages/react-dev-utils/webpackHotDevClient.js#L61 url.format fn gives an output like "ws:localhost:3000/sockjs-node" which does not throw an error with chrome when used in new WebSocket constructor but fails in IE 11 and IE Edge.

Reproducible demo

Instructions given above.

@ianschmitz
Copy link
Contributor

Duplicate of #8084.

@lock lock bot locked and limited conversation to collaborators Dec 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants