‘when’ module wants to access ‘vertx’

What is vertx? I can’t find it anywhere. I’m trying to use autobahn for WAMP websockets and the way that it sets up leaves me something to be desired. The ‘when’ module is trying to access vertx and I’d hate to have to look at this forever.

WARNING in ./bower_components/when/lib/timer.js
Module not found: Error: Cannot resolve module vertx in /usr/local/www/project/build/bower_components/when/lib
 @ ./bower_components/when/lib/timer.js 13:10-29

WARNING in ./bower_components/when/lib/async.js
Module not found: Error: Cannot resolve module vertx in /usr/local/www/project/build/bower_components/when/lib
 @ ./bower_components/when/lib/async.js 47:11-30 47:44-63

Here is a bit of code from async.js

            try {
                // vert.x 1.x || 2.x
                return cjsRequire('vertx').runOnLoop || cjsRequire('vertx').runOnContext;
            } catch (ignore) {}

Author: Fantashit

2 thoughts on “‘when’ module wants to access ‘vertx’

  1. The browser field in package.json only counts for browser builds, but the react-starter production build also compiles for prerendering (for node.js, webpack target node).

Comments are closed.