We use a webpack to bundle our lambdas before we deploy them. Ever since we added code that has a dependency on "jsonpath," the code fails immediately with the following.
TypeError: Cannot read property '1' of undefined at isFileType (fs.js:163:16) at Object.readFileSync (fs.js:346:16) at Object.28729 (/.../bundle.js:2:4710658)
I am pretty new to Webpack, so I am unsure where to go with this. Code works fine, but it's not bundled. Also, I have tried different versions of Webpack. Can someone suggest how to troubleshoot this?