Leow cheah wei • over 4 years ago
how to run the react.js
i try follow https://docs.dolby.io/communications-apis/docs/generic-meeting#install-and-run-the-app and after the npm run start (after fixing the PORT by adding SET Port as i am using windows), i don't see any output . what to be done?
Comments are closed.

5 comments
Katie Gray Manager • over 4 years ago
HI Leow Cheah Wei, thanks for reaching out. A couple questions for you to gain more context:
Did you see any error messages in the terminal after running `npm install`?
Additionally, when you say you don't see any output when you ran `npm run start`, can you clarify what you mean by that? Were there any messages or errors output to the terminal? Nothing rendering in the browser? The expectation is that the react application starts running in the browser when `npm run start` is ran, with a message in the terminal saying as such.
Thanks
Robert Oschler • over 4 years ago
Did you open up the browser debugger (F12 in Chrome to open DevTools), and look in the "Console" tab for any error messages?
Leow cheah wei • over 4 years ago
after i type npm run start in my windows command prompt, i see this output on the command prompt. Not browser windows pop up. is it i need to manually open a browser and point to some address?
> generic-meeting-app@0.1.0 start
> SET PORT=3001 react-scripts start
Katie Gray Manager • over 4 years ago
Thank you for sharing the extra context. It's good to see that there are no blatant errors in the output of the command prompt.
If the browser is not opening automatically, have you tried navigating to http://localhost:3001 manually in a browser window after you run `npm run start`?
Although I do not use Windows, on my Mac machine I see the output below in the terminal after I run `npm run start`. In my case, the browser opens automatically after the final message, but perhaps that is not the case for Windows.
____________________________________________________________________________
> generic-meeting-app@0.1.0 start /path/to/app
> PORT=3001 react-scripts start
Starting the development server...
Compiled successfully!
You can now view classroom-app in the browser.
Local: http://localhost:3001
// at this point a browser window opens automatically at localhost:3001
Leow cheah wei • over 4 years ago
on my command prompt i didn't see those extra lines below and navigating to http://localhost:3001 doesn't work. but since i don't see the 'compiled successfully' means something is wrong with my setup. i will try to see what i can do. i am not familiar with react.js
Starting the development server...
Compiled successfully!
You can now view classroom-app in the browser.
Local: http://localhost:3001
// at this point a browser window opens automatically at localhost:3001