Comments (9)
@types/react-calendar version 4.0.0 and above has issues. So I downgraded the version of react-date-picker from 9.2.0 to 8.4.0. react-date-picker 8.4.0 used @types/react-calendar version 3.0.0. Worked for me.
from react-date-picker.
I have the same problem with
Type error: Type '{ onChange: (...event: any[]) => void; value: Date; }' is not assignable to type 'IntrinsicAttributes & DatePickerProps'.
10:02:41.379
from react-date-picker.
Similar problem
from react-date-picker.
Sounds like a problem with React-Date-Picker types which seem to be incompatible with built-in, more accurate React-Calendar's one, causing build failure ๐ค
from react-date-picker.
I think it's going to be solved once React-Date-Picker becomes native TypeScript as well.
from react-date-picker.
And how long is the wait? Now I canโt put the latest version on the project, the component wrote on 9.0, but putting the same version on a new project, it gives this error, rolling back to version 8.4 - dist/entry.nostyle does not work
from react-date-picker.
I'm providing updates on my free time with unsustainable funding so well typed package will released anywhere between now and 6 months or so.
I'm trying to migrate all packages I have to TypeScript to prevent exactly that.
I'm assuming some kind of hotfix can be provided for the already shipped major version, like fixing handwritten types or pinning React-Calendar version to 4.0.
from react-date-picker.
Pushed a hotfix in v9.2.1, let me know if that's resolved for you!
from react-date-picker.
Thanks, it worked for me. If there is any error, I will write
from react-date-picker.
Related Issues (20)
- Not able to show error message when invalid date entered dynamically. HOT 4
- How to set data-testid prop? HOT 2
- Warning / Bug with Vite v4 HOT 1
- edge case of value < minDate HOT 5
- Fast inputs: Cursor "jumps" to the last selected field instead of the next field
- Support for defaultValue HOT 4
- Partially set date is reset on focus out and back in HOT 2
- If the value entered 0 don't focus the next field when there is a max value set to sigle digit month/date HOT 4
- Type 'Dispatch<SetStateAction>' is not assignable to type '(value: Value) => void'. HOT 1
- Demo link is not working HOT 1
- Module not found: ESM packages (@wojtekmaj/date-utils) HOT 4
- Click on "inputGroup__divider" does not open calendar HOT 2
- ref doesn't reference HOT 8
- Calendar is closing in drill down HOT 2
- Any click on custom footer with buttons like 'Today' and 'Clear' are propagating outsideAction thus closes the datepicker HOT 4
- If input value is less than mindate mindate is shown HOT 5
- Clicking anywhere that is not an active button when placed in react-modal triggers outsideAction and closes the calendar HOT 4
- Denying first `shouldCloseCalendar` turns `Enter` keydown behaviour from `reason` type of `buttonClick` to `select` HOT 2
- react-date-picker 10.0.0 accidentally pushed to npmjs as 9.3.0? HOT 1
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-date-picker.