Runtime info broken in NodeJS 12.0.0+ #2530
Labels
bug
This issue is a bug.
closing-soon
This issue will automatically close in 4 days unless further comments are made.
Describe the bug
When running NodeJS 12.0.0 or higher (tested with 12.0.0 and 12.1.0), the runtime information does not contain the versions for the private NodeJS libraries anymore. The
require.resolve
function used here doesn't properly return the package module.I believe this is a breaking change introduced in NodeJS 12.0.0 through this PR: nodejs/node#23683
Maybe for now it's an option to add a NodeJS version constraint to the package.json file with a < 12.0.0.
To Reproduce
cd /path/to/aws-cdk/packages/@aws-cdk/cdk ../../../node_modules/.bin/nodeunit test/test.app.js
runtime library versions
andversion reporting includes only @aws-cdk, aws-cdk and jsii libraries
tests failExpected behavior
Non-failing tests
Version:
The text was updated successfully, but these errors were encountered: