Skip to content

Issue with hot reload w/ moleculer-runner on node 14 #810

@savearray2

Description

@savearray2

When creating a docker image using FROM node:buster and running the following:

./node_modules/.bin/moleculer-runner --instances=$INSTANCE_CNT -H -c ./config.js --env services/**

I'm getting the following error:

[Runner] The feature watch recursively is unavailable on the current platform, which is being used to run Node.js TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
    at Object.watch (fs.js:1470:11)
    at /usr/src/cute/node_modules/moleculer/src/middlewares/hot-reload.js:281:19
    at Array.forEach (<anonymous>)
    at watchProjectFolders (/usr/src/cute/node_modules/moleculer/src/middlewares/hot-reload.js:276:13)
    at ServiceBroker.started (/usr/src/cute/node_modules/moleculer/src/middlewares/hot-reload.js:330:4)
    at /usr/src/cute/node_modules/moleculer/src/middleware.js:83:50
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  code: 'ERR_FEATURE_UNAVAILABLE_ON_PLATFORM'
}

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 :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions