-
-
Notifications
You must be signed in to change notification settings - Fork 588
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
Issue with hot reload w/ moleculer-runner on node 14 #810
Comments
Problem code moleculer/src/middlewares/hot-reload.js Line 281 in 76855eb
Ref: nodejs/node#29947 researched the problem, other projects started using the chokidar library to support cross-platform: |
Thanks @intech the investigation. My problem with chokidar that I want to minimalize the number of dependencies in the Moleculer core, so I don't like to add a new lib for hot-reload. Any native alternative solution? |
@icebob I fully support your opinion on dependencies. I have looked into several solutions and my vote for a respected developer https://github.com/mafintosh/recursive-watch Examples: |
Great, it looks very lightweight with one additional dependencies. Thanks, I will check it. |
Any update on this? |
@icebob Node v14 is now Active LTS, and v12 has been moved to Maintenance LTS status (as of 2020-11-30). I had to change my Dockerfile to specify I would be willing to make a pull request if you know which library you would like to use. |
@savearray2 Thanks, I think we should try the |
@icebob |
Merged! |
When creating a docker image using
FROM node:buster
and running the following:I'm getting the following error:
The hot reload feature works properly when using the current version of node-lts (
FROM node:lts-buster
).Version Used: Moleculer v0.14.10
Thank you :)
The text was updated successfully, but these errors were encountered: