It seems like Webpack is ignoring or blocking access to the crypto module which is why Connector can’t use it for encryption, thus receiving that error. Basically externals prevent bundling of dependencies but will retrieve them at runtime. Try removing {crypto: false}
in externals in your Webpack config. According to this documentation, externals: [NodeExternals()],
will ignore all modules in the node_modules folder.