Cannot custom webpack config in React app

Hello,

I have run npm install, however it didn’t fix the issue though it works well when I use default webpack.config.js.
I have tried the try-catch block, and if I put the import package into a try block, it shows the message Failed inside the catch block. Therefore, I understand that the config path was right and it actually runs into my webpack.config.js.
I haven’t know what really goes wrong. I’ll send you my webpack.config.js, please help me investigate it.

Thank you very muchwebpack.config.zip (915 Bytes)

2 Likes