I was getting the same error using the eonasdan-bootstrap-datetimepicker widget.
I tried several things, including adding the last two lines here to the ProvidePlugin section of webpack.config.js:
The only thing that actually worked, however, was changing
require('jquery'); in main.js to this:
This might not be ideal, though. Does anyone have a better solution?