To fix the problem, you can add the following section to your Webpack configuration:
resolve: {
mainFields: ['es2015', 'browser', 'module', 'main']
}
This would ensure that Webpack correctly picks the right module entry points; that could potentially prevent issues from surfacing, possibly those related to class constructors and module loading