To resolve the issue:
Install @vertx/core
(npm i @vertx/core
)
Edit the file ./node_modules/when/lib/env.js
, and change line 32 from
var vertx = vertxRequire('vertx');
to
var vertx = vertxRequire('@vertx/core');
This will reference the @vertx/core package instead of the vertx package, which does not seem to be able to be found when using webpack and npm. I haven't experienced any issues with just using vertx/core. You might also need to update your gitignore to include the changes to the library if others are also working on your project.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…