MCDatepicker throws error on app start, how to fix this error?

I am getting the below error while importing MCDatepicker, and the app could not start.

[1] Module parse failed: Unexpected token (141:23)
[1] File was processed with these loaders:
[1]  * ./node_modules/babel-loader/lib/index.js
[1] You may need an additional loader to handle the result of these loaders.
[1] |     instance.pickedDate = date;
[1] |     updateLinkedInputValue(instance);
[1] >     if (activeInstance?._id !== instance._id) return;
[1] |     var _activeInstance4 = activeInstance,
[1] |         store = _activeInstance4.store;

Please help out.