Code Monkey home page Code Monkey logo

Comments (4)

wojtekmaj avatar wojtekmaj commented on June 26, 2024

Hello,
React-DateRange-Picker is not on npm due to name conflict. You need to build it yourself if you would like to use it.

from react-daterange-picker.

cryptoclimate avatar cryptoclimate commented on June 26, 2024

I tried to build it but am getting this error (node v10.5.0):

$ npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

audited 46068 packages in 4.063s
found 4 moderate severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details
$ npm run build

> [email protected] build node_modules/react-daterange-picker
> yarn run build-js && yarn run copy-styles && yarn run build-styles

yarn run v1.9.4
$ babel src -d dist --ignore __tests__
SyntaxError: src/DateRangePicker.jsx: Unexpected token (22:8)
  20 |   }
  21 | 
> 22 |   state = {};
     |         ^
  23 | 
  24 |   componentDidMount() {
  25 |     document.addEventListener('mousedown', this.onClick);
error Command failed with exit code 1.

from react-daterange-picker.

wojtekmaj avatar wojtekmaj commented on June 26, 2024

Uh... I may release it under @wojtekmaj/react-daterange-picker ;) I think that would settle it.

from react-daterange-picker.

wojtekmaj avatar wojtekmaj commented on June 26, 2024

@cryptoclimate @emmyhayer The package is now published as a scoped package under @wojtekmaj/react-daterange-picker name. Please check it out; it comes with prebuilt code, so you shouldn't have any more problems with it!

from react-daterange-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.