ERR_PACKAGE_PATH_NOT_EXPORTED
error in test/config.js in Node.js nightly when requiring a subpath of @elastic/elasticsearch
#2350
Labels
agent-nodejs
Make available for APM Agents project planning.
Recently a test run against the latest node v17 nightly build started failing as follows:
It started failing on this nightly build:
which means one of these commits: nodejs/node@0991dfc...c7da13c
and almost certainly this PR nodejs/node#40121
which changed a DeprecationWarning, e.g.:
to a runtime error:
The code in question doing this, in this case, is here:
apm-agent-nodejs/test/config.test.js
Line 863 in 60ed413
Note that the agent does this kind of thing in other places, including in the runtime, not just the test suite:
I'm not yet sure if this can/will affect instrumentation of
@elastic/elasticsearch
.Note as well that the ES client already has elastic/elasticsearch-js#1465 regarding the DeprecationWarning.
The text was updated successfully, but these errors were encountered: