I am trying to use Stripe with my application, when I do, I get this error during build:
ERROR in ./node_modules/stripe/lib/utils.js Module not found: Error: Can't resolve 'child_process' in 'PATH\node _modules\stripe\lib'
When I change my webpack dev config to target node like this:
export default {
...,
target: 'node',
...
}
I get an error with require not being defined, which everywhere online indicates is caused by the following statement which is not in my webpack config:
externals: [nodeExternals()]
As seen in this question.