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

[5.0.0-rc.1] Hot Reload doesn't work #2721

Open
smileavi opened this issue May 31, 2018 · 18 comments
Open

[5.0.0-rc.1] Hot Reload doesn't work #2721

smileavi opened this issue May 31, 2018 · 18 comments

Comments

@smileavi
Copy link

smileavi commented May 31, 2018

  • [Yes ] I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 5.0.0-rc.1
Node v9.4.0
npm 5.6.0
Operating System OS X 10 & Ubuntu 16
etc etc
Item Answer
TypeScript Yes
HTML Yes
SCSS & CSS Tried both
Router Angular
Mocha Yes
MongoDB Yes
Auth Yes
etc websocket added

Used npm run start:server & npm run start:client. App runs fine.
Hot reload is not working. File changes do not trigger any reload on both server and client side.

Please suggest

@albert-92
Copy link
Contributor

What IDE do you use?

@Awk34
Copy link
Member

Awk34 commented Jul 9, 2018

What IDE do you use?

This would be useful information. Some IDEs (IntelliJ) only save a copy of your changes in-memory to save on disk writes, but this makes the reloaders not able to see any changes. There's a setting to always write saves to disk.

@umimehar
Copy link

same issue here. i am using version 5.0.0-rc.3.....

but gulp serve is not working these manual commands are working fine.

on gulp serve .tmp folder always empty. event localhost :3000 dont serve the app.html

@Awk34
Copy link
Member

Awk34 commented Jul 11, 2018

gulp serve is deprecated in 5.0.0.

Your app should be served at http://localhost:8080. .tmp folder is always empty because the webpack dev server keeps the files in-memory for faster rebuild.

@smileavi
Copy link
Author

ATOM @albert-92

@umimehar
Copy link

ok then why gulp serve always open localhost:3000 lol.

@Awk34
Copy link
Member

Awk34 commented Jul 11, 2018

@umimehar gulp serve should be gone from all documentation, ignore it. It will be removed.

@umimehar
Copy link

then please tell me how can i start the dev server?

@Awk34
Copy link
Member

Awk34 commented Jul 11, 2018

@umimehar please read the README file: https://github.com/angular-fullstack/generator-angular-fullstack#usage

@smileavi
Copy link
Author

npm run start:server and npm run start:client. @umimehar

Please refer to the below link
[https://angular-fullstack.github.io/get-started/running/]

@Awk34
Copy link
Member

Awk34 commented Jul 11, 2018

@smileavi back on topic, are there any more details you can provide? Is there anything strange in the console output? Can you confirm the files are actually changing?

@umimehar
Copy link

ok thanks. it works. seems like i need to give 2 commands to run front end and back end. cool.
that was a major change. well
image

and what about these 2 warnings?

@Awk34
Copy link
Member

Awk34 commented Jul 11, 2018

@umimehar we'll have to wait for Angular themselves to address that. You can search those warnings within their issue board.

@smileavi
Copy link
Author

smileavi commented Jul 11, 2018

@Awk34
screen shot 2018-07-11 at 14 43 19

@umimehar
Copy link

@Awk34
i just got that server files are not being watched? is it?

@rafaelmmadeira
Copy link

Same issue here, using 5.0.0-rc.3. I did a fresh scaffolding and hot reload is working fine for client but server files are not being watched.

When i run npm run start:server i got the following:

cropped

@Awk34
Copy link
Member

Awk34 commented Jul 11, 2018

Replacing the run command with this should make it auto reload:

"start:server": "nodemon --watch server server"

(see #2744)

@rafaelmmadeira
Copy link

@Awk34

that made it to me!

Thanks!

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

5 participants