Comments (10)
Glad to hear it's working!
from react-flatpickr.
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.
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.
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.
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.
Hey @jacobmischka! But flatpickr was not installed as a dependency of react-flatpickr.
from react-flatpickr.
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.
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.
I also had the problem of flatpicker
being installed in react-flatpicker/node_modules
. rm -rf
ing 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.
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)
- Bump flatpickr to 4.6.13 (fix issues) HOT 3
- The style is not working
- Clear date does not trigger onChange
- TypeError: _this.flatpickr.setDate is not a function in Jest after upgrading to CRA 5 HOT 1
- x
- Convert a selected date range in Flatpickr
- The calender component should support for testing purpose
- is there a way to use monthSelectPlugin , this doesnot seems to work ? HOT 2
- Lazy loading crashes Flatpickr HOT 1
- Conjunction config option not working when set to "\n"
- Mobile datepicker gets rendered twice when using Nextjs 13 HOT 2
- esbuild Incompatibility with Babel Versions Below 7.14.0
- In the mode selector for time user is able to enter more that 2 digit and not valid time in the timer input.
- umd packaging
- No updation on blur
- monthSelectPlugin error on mobile view
- Uncaught Error: Element type is invalid
- Year input value changes unexpectedly on pressing Enter.
- Flatpickr instance is available at `flatpickr` rather than `_flatpickr` as main docs say
- Flatpickr doesn't scroll properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-flatpickr.