-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
Description
Version
Reproduction link
[I can provide a repository but in private](I can provide a repository but in private)
Steps to reproduce
Node production
>nuxt build
>nuxt start
When I try to open the page I get such an error.

Console:
ERROR Cannot read property 'protocol' of undefined
at t.exports (server.js:1:26310)
at d (server.js:1:23078)
at Object.<anonymous> (server.js:1:4386)
at r (server.js:1:194)
at Module.<anonymous> (server.js:1:70037)
at r (server.js:1:194)
at Object.<anonymous> (server.js:1:23665)
at r (server.js:1:194)
at server.js:1:1309
at Object.<anonymous> (server.js:1:1319)
In node development, everything is ok.
What is expected ?
Launching the application without problems.
What is actually happening?
The application won't start.
Additional comments?
Building is successful. It makes no difference whether I run the project via my own server.js file or the nuxt command.
package.json
{
"name": "nuxt-socketio",
"scripts": {
"dev": "nodemon -w server.js -w nuxt.config.js server.js",
"build": "nuxt build",
"start": "node server.js",
"heroku-postbuild": "npm run build",
"test": "jest --runInBand --watchAll"
},
"dependencies": {
"@nuxtjs/google-analytics": "^2.2.0",
"array-move": "^1.0.0",
"axios": "^0.19.0",
"dotenv": "^8.0.0",
"express": "^4.17.1",
"jsonwebtoken": "^8.3.0",
"moment": "^2.22.2",
"mongodb": "^3.1.13",
"nuxt": "^2.10.2",
"nuxt-dropzone": "^0.2.8",
"socket.io": "^1.7.2",
"socket.io-client": "^1.7.2",
"vue-awesome-swiper": "^3.1.3",
"vue-events": "^3.1.0",
"vue-multiselect": "^2.1.3",
"vue-toasted": "^1.1.25",
"vue2-dropzone": "^3.5.2"
},
"devDependencies": {
"node-sass": "^4.13.0",
"sass-loader": "^7.3.1"
}
}