admin管理员组

文章数量:1414908

I'm currently working on a Project and we need to use a date-time picker ponent for react. We are currently using this one:

But we had an issue with it, forked it and tried to solve our problem. Here's the link of my fork:

Our problem right now is... how can I integrate this react ponent fork into my rails application using npm?

I've already seen a couple tutorials around and I've tried them. They involved mainly using the repo URL in the package.json file and then executing npm install, but somehow it didn't work:

Error: Cannot find module 'react-bootstrap-datetimepicker'

Why the original version works with npm install but the fork doesn't? It looks like when I execute npm install with the fork url then the build is not plete or it just lack of some symbolic links or something.

I'm currently working on a Project and we need to use a date-time picker ponent for react. We are currently using this one:

https://github./quri/react-bootstrap-datetimepicker

But we had an issue with it, forked it and tried to solve our problem. Here's the link of my fork:

https://github./fertaku/react-bootstrap-datetimepicker

Our problem right now is... how can I integrate this react ponent fork into my rails application using npm?

I've already seen a couple tutorials around and I've tried them. They involved mainly using the repo URL in the package.json file and then executing npm install, but somehow it didn't work:

Error: Cannot find module 'react-bootstrap-datetimepicker'

Why the original version works with npm install but the fork doesn't? It looks like when I execute npm install with the fork url then the build is not plete or it just lack of some symbolic links or something.

Share Improve this question edited Oct 20, 2015 at 15:59 asked Oct 20, 2015 at 15:45 user3555007user3555007
Add a ment  | 

3 Answers 3

Reset to default 2

As of today, you can also use this ponent which uses Bootstrap 4 styles: https://github./tonix-tuft/react-tempusdominus-bootstrap

"react-bootstrap-datetimepicker" repository is not maintained anymore and Depreciated, please refer to this fork : https://github./YouCanBookMe/react-datetime

You need to prefix the url with "github:" instead of "https:". It should look like this in your package.json

"react-bootstrap-datetimepicker": "github:fertaku/react-bootstrap-datetimepicker",

本文标签: javascriptReactbootstrap Datetimepicker issueStack Overflow