Unable To Use react-calendar Inside Custom Perspective Module

I am about to do some simple R&D experiment to create custom perspective module. At some point i need to have a calendar reactjs component. Despite being successfully installing the react-calendar npm package,i am unable to make it works.

When i compiled the code by calling ./gradlew.bat clean build, i got plenty of error. It seems during compilation the compiler couldn’t locate react-calendar.

Did i missed something?

Looks like a Webpack configuration issue.

Yeah, it seems so. Thanks