react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Uncaught Error: Cannot find module '[object Object]' after reinstalling package

Open angelinacc opened this issue 11 years ago • 3 comments

So I removed react-datepicker package to reinstall it again today. However, I am now getting this error:

Uncaught Error: Cannot find module '[object Object]'

and also noticed that moment is missing from node_modules under this package, not exactly sure why and wanted some insight. It was working before until I removed it.

This is my dependencies in my package.json: "react": "0.14.2", "react-dom": "0.14.2", "react-datepicker": "0.15.2", "moment": "2.10.6"

angelinacc avatar Nov 19 '15 23:11 angelinacc

you need to add this "react-onclickoutside":"4.1.1" it's seems the component has another version that is the problem

"react": "0.14.2", "react-dom": "0.14.2", "react-datepicker": "0.15.2", "moment": "2.10.6", "react-onclickoutside":"4.1.1"

let me know

cracdev avatar Nov 20 '15 00:11 cracdev

I downgraded react-onclickoutside to make sure it doesn't fail anymore.

martijnrusschen avatar Nov 20 '15 13:11 martijnrusschen

Looks like the issue is resolved, thanks guys.

angelinacc avatar Dec 03 '15 00:12 angelinacc