GithubHelp home page GithubHelp logo

Cannot GET / about video-meeting HOT 11 CLOSED

0x5eba avatar 0x5eba commented on July 25, 2024
Cannot GET /

from video-meeting.

Comments (11)

IbrahimBilalPrograms avatar IbrahimBilalPrograms commented on July 25, 2024

same problem idk what is causing it.

from video-meeting.

ni5arga avatar ni5arga commented on July 25, 2024

same problem

from video-meeting.

wk989898 avatar wk989898 commented on July 25, 2024

try to set "server": "set NODE_ENV=production && nodemon app.js " in package.json,problem may be caused by NODE_ENV,
i solved by modify scripts

from video-meeting.

ZamanMehdi avatar ZamanMehdi commented on July 25, 2024

@wk989898 still giving me the same error after modifying, can you help me with this?
Thanks

from video-meeting.

0x5eba avatar 0x5eba commented on July 25, 2024

Did you run yarn install and yarn dev?
You can use npm install and npm run dev if you prefer

from video-meeting.

wk989898 avatar wk989898 commented on July 25, 2024

@wk989898 still giving me the same error after modifying, can you help me with this?
Thanks
"server": "set NODE_ENV=production&&nodemon app.js"
remove space (run on windows)

from video-meeting.

ZamanMehdi avatar ZamanMehdi commented on July 25, 2024

still not working

from video-meeting.

wk989898 avatar wk989898 commented on July 25, 2024

solved on windows:
if you run dev , modify "dev": "concurrently -n 'server,client' -c 'red,green' \"nodemon app.js\" \"set NODE_ENV=dev&& set PORT=8000&&react-scripts start\""
if you run server,make sure you build it and modify "server": "set NODE_ENV=production&&nodemon app.js"

from video-meeting.

ni5arga avatar ni5arga commented on July 25, 2024

solved on windows:
if you run dev , modify "dev": "concurrently -n 'server,client' -c 'red,green' \"nodemon app.js\" \"set NODE_ENV=dev&& set PORT=8000&&react-scripts start\""
if you run server,make sure you build it and modify "server": "set NODE_ENV=production&&nodemon app.js"

Same error again!

_yarn run v1.22.5
$ concurrently -n 'server,client' -c 'red,green' "nodemon app.js" "set NODE_ENV=dev&& set PORT
=8000&&react-scripts start"
[server] [nodemon] 2.0.6
[server] [nodemon] to restart at any time, enter `rs`
[server] [nodemon] watching path(s): *.*
[server] [nodemon] watching extensions: js,mjs,json
[server] [nodemon] starting `node app.js`
[server] listening on 4001
[client] i 「wds」: Project is running at http://192.168.43.91/
[client] i 「wds」: webpack output is served from
[client] i 「wds」: Content not from webpack is served from C:\Users\rubyd\Desktop\Coding\Video-Meeting\public
[client] i 「wds」: 404s will fallback to /
[client] Starting the development server...
[client]
[client] Compiled with warnings.
[client]
[client] ./src/Video.js
[client]   Line 127:39:  Function declared in a loop contains unsafe references to variable(s) 'connections', 'socket', 'connections'  no-loop-func
[client]   Line 153:41:  Function declared in a loop contains unsafe references to variable(s) 'connections', 'socket', 'connections'  no-loop-func
[client]   Line 189:39:  Function declared in a loop contains unsafe references to variable(s) 'connections', 'socket', 'connections'  no-loop-func
[client]   Line 350:43:  Function declared in a loop contains unsafe references to variable(s) 'connections', 'socket', 'connections'  no-loop-func
[client]
[client] ./src/Home.js
[client]   Line 21:8:  'url' is already defined  no-redeclare
[client]
[client] Search for the keywords to learn more about each warning.
[client] To ignore, add // eslint-disable-next-line to the line before.
[client]_

Here are the outputs I got in the terminal & I am still getting the Cannot GET / error.
@wk989898 @0x5eba

from video-meeting.

wk989898 avatar wk989898 commented on July 25, 2024

solved on windows:
if you run dev , modify "dev": "concurrently -n 'server,client' -c 'red,green' \"nodemon app.js\" \"set NODE_ENV=dev&& set PORT=8000&&react-scripts start\""
if you run server,make sure you build it and modify "server": "set NODE_ENV=production&&nodemon app.js"

Same error again!

_yarn run v1.22.5
$ concurrently -n 'server,client' -c 'red,green' "nodemon app.js" "set NODE_ENV=dev&& set PORT
=8000&&react-scripts start"
[server] [nodemon] 2.0.6
[server] [nodemon] to restart at any time, enter `rs`
[server] [nodemon] watching path(s): *.*
[server] [nodemon] watching extensions: js,mjs,json
[server] [nodemon] starting `node app.js`
[server] listening on 4001
[client] i 「wds」: Project is running at http://192.168.43.91/
[client] i 「wds」: webpack output is served from
[client] i 「wds」: Content not from webpack is served from C:\Users\rubyd\Desktop\Coding\Video-Meeting\public
[client] i 「wds」: 404s will fallback to /
[client] Starting the development server...
[client]
[client] Compiled with warnings.
[client]
[client] ./src/Video.js
[client]   Line 127:39:  Function declared in a loop contains unsafe references to variable(s) 'connections', 'socket', 'connections'  no-loop-func
[client]   Line 153:41:  Function declared in a loop contains unsafe references to variable(s) 'connections', 'socket', 'connections'  no-loop-func
[client]   Line 189:39:  Function declared in a loop contains unsafe references to variable(s) 'connections', 'socket', 'connections'  no-loop-func
[client]   Line 350:43:  Function declared in a loop contains unsafe references to variable(s) 'connections', 'socket', 'connections'  no-loop-func
[client]
[client] ./src/Home.js
[client]   Line 21:8:  'url' is already defined  no-redeclare
[client]
[client] Search for the keywords to learn more about each warning.
[client] To ignore, add // eslint-disable-next-line to the line before.
[client]_

Here are the outputs I got in the terminal & I am still getting the Cannot GET / error.
@wk989898 @0x5eba

it will automatically open browser. if not.please open http://localhost:8000/

from video-meeting.

Shanmukhsvstp avatar Shanmukhsvstp commented on July 25, 2024

Hello sir, I have faced the same issue. But you can see that error shows that "NODE_ENV" is not recognized.
So, you can install it in that project by following command - "npm install -g win-node-env". Then try "yarn run dev".
That worked for me and also should fix your issue

from video-meeting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.