GithubHelp home page GithubHelp logo

Comments (9)

MustacheTuanVu avatar MustacheTuanVu commented on May 27, 2024 1

@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.

rossanodr avatar rossanodr commented on May 27, 2024

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.

sas6757 avatar sas6757 commented on May 27, 2024

Similar problem

from react-date-picker.

wojtekmaj avatar wojtekmaj commented on May 27, 2024

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.

wojtekmaj avatar wojtekmaj commented on May 27, 2024

I think it's going to be solved once React-Date-Picker becomes native TypeScript as well.

from react-date-picker.

sas6757 avatar sas6757 commented on May 27, 2024

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.

wojtekmaj avatar wojtekmaj commented on May 27, 2024

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.

wojtekmaj avatar wojtekmaj commented on May 27, 2024

Pushed a hotfix in v9.2.1, let me know if that's resolved for you!

from react-date-picker.

sas6757 avatar sas6757 commented on May 27, 2024

Thanks, it worked for me. If there is any error, I will write

from react-date-picker.

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.