Giter Site home page Giter Site logo

Comments (10)

jacobmischka avatar jacobmischka commented on July 28, 2024 1

Glad to hear it's working!

from react-flatpickr.

jacobmischka avatar jacobmischka commented on July 28, 2024

You're supposed to import them from flatpickr. It's a dependency of this package, so it'll be installed as a dependency when you install react-flatpickr. There's an example of this in the readme.

from react-flatpickr.

viniciusCamargo avatar viniciusCamargo commented on July 28, 2024

So I have to install it separately, haven't I? I did not find this info on the Readme though. Thanks anyway.

from react-flatpickr.

jacobmischka avatar jacobmischka commented on July 28, 2024

If you're using npm flatpickr will automatically be installed as a dependency when you install react-flatpickr, so you shouldn't need to install anything else separately.

I just meant that in the example in the readme the css is being imported from flatpickr and not from react-flatpickr.

from react-flatpickr.

jacobmischka avatar jacobmischka commented on July 28, 2024

Feel free to write back if you're still running into problems, I just closed it because I don't believe it's a bug.

from react-flatpickr.

viniciusCamargo avatar viniciusCamargo commented on July 28, 2024

Hey @jacobmischka! But flatpickr was not installed as a dependency of react-flatpickr.

from react-flatpickr.

jacobmischka avatar jacobmischka commented on July 28, 2024

I'm not sure what to tell you about that, it's definitely a dependency. Depending on what version of npm you're using it might be located in node_modules/react-flatpickr/node_modules/flatpickr. But on newer npms it should be just in the project node_modules dir.

from react-flatpickr.

viniciusCamargo avatar viniciusCamargo commented on July 28, 2024

That's weird, I'm using v7.6.0. And I tried to reinstall it now and everything worked as expected. Maybe it was something with my previous install. Thank you so much @jacobmischka. That's an marvelous component. 😄

from react-flatpickr.

austinjreilly avatar austinjreilly commented on July 28, 2024

I also had the problem of flatpicker being installed in react-flatpicker/node_modules. rm -rfing node_modules fixed the problem, but weird that it happened to both @viniciusCamargo and I. Is there information I could provide to help troubleshoot so that this doesn't happen to others?

from react-flatpickr.

jacobmischka avatar jacobmischka commented on July 28, 2024

Honestly I think it just depends on the black magic algorithms that npm/yarn use to dedupe, and the version of npm/yarn you're using at the time.

I think you're on the right track, and the best thing to do would just be to mention this in the readme.

Thanks for the PR by the way!

from react-flatpickr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.