Overcoming NPM Crypto Module Issues in Mendix: Exploring Solutions for Webpack Configuration Challenges

0
We're currently running into an issue where many npm packages that we'd like to use require the crypto module to be installed. There's away around it but then we'd have to change the webpack configuration and I don't believe it's possible in Mendix. But, please correct me if I'm wrong.   We generally get this kind of error:[webpack-cli] [31mModuleNotFoundError: Module not found: Error: Can't resolve 'crypto' in 'C:\Mendix\LandanoCFIdentityPoC-main\javascriptsource\signifyts\actions\node_modules\ecdsa-secp256r1'BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.This is no longer the case. Verify if you need this module and configure a polyfill for it.If you want to include a polyfill, you need to:- add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'- install 'crypto-browserify'If you don't want to include a polyfill, you can use an empty module like this:resolve.fallback: { "crypto": false }   Do you or anyone in your team know a way around this?
asked
0 answers