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

failure version 0.11 with sockJS #406

Closed
jamalsoueidan opened this issue Jul 12, 2018 · 1 comment
Closed

failure version 0.11 with sockJS #406

jamalsoueidan opened this issue Jul 12, 2018 · 1 comment

Comments

@jamalsoueidan
Copy link

jamalsoueidan commented Jul 12, 2018

Expected Behavior

When I rerun my application the sockJS connection is broken!

Actual Behavior

First time it works, second time it stops working for unknown reason.

Is an error being thrown?

Uncaught SyntaxError: The URL 'http:/localhost:3000' is invalid
    at new SockJS (sockjs.js?9be2:678)
    at initSocket (socket.js?e29c:9)
    at Object.eval (client?2f89:211)
    at eval (index.js?http:\localhost:3000:248)
    at Object../node_modules/webpack-dev-server/client/index.js?http:\localhost:3000 (nodemodules.31e93cf519330815a77f.js?31e93cf519330815a77f:275)
    at __webpack_require__ (main.31e93cf519330815a77f.js?31e93cf519330815a77f:783)
    at fn (main.31e93cf519330815a77f.js?31e93cf519330815a77f:151)
    at Object.0 (main.31e93cf519330815a77f.js?31e93cf519330815a77f:1005)
    at __webpack_require__ (main.31e93cf519330815a77f.js?31e93cf519330815a77f:783)
    at checkDeferredModules (main.31e93cf519330815a77f.js?31e93cf519330815a77f:46)

Steps to Reproduce

simple

npm start
.... stop the application
npm start
... stops working

Operating System, Node, and NPM dependency versions

Windows 10
Node 8.11.2

"dependencies": {
    "@types/react": "^16.4.6",
    "@types/react-dom": "^16.0.5",
    "@types/react-redux": "^6.0.4",
    "@types/redux": "^3.6.0",
    "babel-polyfill": "^6.26.0",
    "clean-webpack-plugin": "^0.1.19",
    "copyfiles": "^2.0.0",
    "css-loader": "^1.0.0",
    "csstype": "^2.5.3",
    "duplicate-package-checker-webpack-plugin": "^3.0.0",
    "extract-text-webpack-plugin": "^4.0.0-beta.0",
    "file-loader": "^1.1.11",
    "fork-ts-checker-webpack-plugin": "^0.4.3",
    "fs": "0.0.1-security",
    "fs-extra": "^6.0.1",
    "happypack": "^5.0.0",
    "hard-source-webpack-plugin": "^0.11.0",
    "html-webpack-plugin": "^3.2.0",
    "jest": "^23.4.0",
    "json-loader": "^0.5.7",
    "mini-css-extract-plugin": "^0.4.1",
    "minimist": "^1.2.0",
    "node-sass": "^4.9.2",
    "npx": "^10.2.0",
    "postcss-loader": "^2.1.6",
    "postcss-preset-env": "^5.2.1",
    "react": "^16.4.1",
    "react-dom": "^16.4.1",
    "react-hot-loader": "^4.3.3",
    "react-redux": "^5.0.7",
    "redux": "^4.0.0",
    "request": "^2.87.0",
    "rimraf": "^2.6.2",
    "sass-loader": "^7.0.2",
    "semver": "^5.5.0",
    "shelljs": "^0.8.2",
    "shorthash": "0.0.2",
    "style-loader": "^0.21.0",
    "ts-loader": "^4.4.2",
    "tslint": "^5.10.0",
    "tslint-config-prettier": "^1.13.0",
    "tslint-eslint-rules": "^5.3.1",
    "tslint-react": "^3.6.0",
    "typescript": "^2.9.2",
    "uglifyjs-webpack-plugin": "^1.2.7",
    "webpack": "^4.16.0",
    "webpack-bundle-analyzer": "^2.13.1",
    "webpack-bundle-size-analyzer": "^2.7.0",
    "webpack-bundle-tracker": "^0.3.0",
    "webpack-cli": "^3.0.8",
    "webpack-dev-server": "^3.1.4",
    "webpack-hot-middleware": "^2.22.2",
    "webpack-merge": "^4.1.3"
  },
  "engines": {
    "node": ">=8.11.2"
  }
@mzgoddard
Copy link
Owner

@jamalsoueidan Thank you for opening this issue. It looks like the problem was a change to how module resolutions were stored that modified query params changing ?http://localhost:8080 to ?http:/localhost:8080.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants