When trying to run a dcp-client application on Node.js v14.x, DeprecationWarning: Module.createRequireFromPath() is deprecated. Use Module.createRequire() instead. always appears (Deprecated since v12.2.0), as seen in the stack trace below:
$ node app.js
(node:3770) [DEP0130] DeprecationWarning: Module.createRequireFromPath() is deprecated. Use Module.createRequire() instead.
at Object.job$$createModuleBundle [as createModuleBundle] (webpack:///./src/dcp-client/job/node-modules.js?:68:44)
at Job._pack (webpack:///./src/dcp-client/job/index.js?:699:100)
at Job._publishLocalModules (webpack:///./src/dcp-client/job/index.js?:712:55)
at Job.[Job.deploy] (webpack:///./src/dcp-client/job/index.js?:1111:42)
at Job.exec (webpack:///./src/dcp-client/job/index.js?:817:31)
at async main (/home/foo/bar/app.js:39:17)
It doesn't affect the running of the application it seems, but would it be possible to not have to make me work around suppressing this warning manually, given that it isn't due to my application's code?
When trying to run a
dcp-client
application on Node.jsv14.x
,DeprecationWarning: Module.createRequireFromPath() is deprecated. Use Module.createRequire() instead.
always appears (Deprecated since v12.2.0), as seen in the stack trace below:It doesn't affect the running of the application it seems, but would it be possible to not have to make me work around suppressing this warning manually, given that it isn't due to my application's code?
Steps to reproduce:
npm
project withnpm init
dcp-client
:npm i dcp-client
init
method in the app:node app.js
Package version:
dcp-client@4.1.14
OS: Ubuntu 20.04.3 LTS Node version:v14.18.1