Git Product home page Git Product logo

Comments (5)

sstur avatar sstur commented on September 23, 2024 1

Oop, will fix.

On Tuesday, May 3, 2016, Secretmapper [email protected] wrote:

Seems like the upgrade to 0.6.0 draft-js broke the package, since the
export/import-ers uses 0.5.0 as the draft-js dependency.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#41

from react-rte.

Secretmapper avatar Secretmapper commented on September 23, 2024 1

Thanks @sstur! I owe you one! 🍻 Yup, peer dependencies can't seem to conflict since it'll have to reference the same package.

from react-rte.

Secretmapper avatar Secretmapper commented on September 23, 2024

Any timeline on this @sstur ? I know you're probably busy, but it'd be really solid if you can get it fixed soon. I'd really rather not fork 4-5 packages to do a bunch of few line updates 😄

from react-rte.

sstur avatar sstur commented on September 23, 2024

Here's what I see on a fresh install of the current npm latest [email protected]:

sstur@local:example4$ npm install react-rte
/Users/Me/projects/example4
├── UNMET PEER DEPENDENCY react@^15.0.1
├── UNMET PEER DEPENDENCY react-dom@^15.0.1
└─┬ [email protected] 
  ├── [email protected] 
  ├─┬ UNMET PEER DEPENDENCY [email protected]
  │ └─┬ [email protected] 
  │   ├─┬ [email protected] 
  │   │ └─┬ [email protected] 
  │   │   └── [email protected] 
  │   ├── [email protected] 
  │   ├─┬ [email protected] 
  │   │ ├─┬ [email protected] 
  │   │ │ ├─┬ [email protected] 
  │   │ │ │ └── [email protected] 
  │   │ │ └── [email protected] 
  │   │ └── [email protected] 
  │   ├─┬ [email protected] 
  │   │ └── [email protected] 
  │   ├─┬ [email protected] 
  │   │ └── [email protected] 
  │   └── [email protected] 
  ├─┬ [email protected] 
  │ ├── UNMET PEER DEPENDENCY draft-js@^0.5.0
  │ └── [email protected] 
  ├─┬ [email protected] 
  │ └── UNMET PEER DEPENDENCY draft-js@^0.5.0
  ├─┬ [email protected] 
  │ ├── UNMET PEER DEPENDENCY draft-js@^0.5.0
  │ └─┬ [email protected] 
  │   └── UNMET PEER DEPENDENCY draft-js@^0.5.0
  ├─┬ [email protected] 
  │ ├── UNMET PEER DEPENDENCY draft-js@^0.5.0
  │ └── [email protected] 
  ├── [email protected] 
  ├── [email protected] 
  ├── UNMET PEER DEPENDENCY react@^0.14.0 || ^15.0.0-rc
  └── UNMET PEER DEPENDENCY react-dom@^0.14.0 || ^15.0.0-rc

npm WARN [email protected] requires a peer of react@^15.0.1 but none was installed.
npm WARN [email protected] requires a peer of react-dom@^15.0.1 but none was installed.
npm WARN [email protected] requires a peer of draft-js@^0.5.0 but none was installed.
npm WARN [email protected] requires a peer of draft-js@^0.5.0 but none was installed.
npm WARN [email protected] requires a peer of draft-js@^0.5.0 but none was installed.
npm WARN [email protected] requires a peer of draft-js@^0.5.0 but none was installed.
npm WARN [email protected] requires a peer of react@^0.14.0 || ^15.0.0-rc but none was installed.
npm WARN [email protected] requires a peer of react-dom@^0.14.0 || ^15.0.0-rc but none was installed.
npm WARN [email protected] requires a peer of draft-js@^0.5.0 but none was installed.
npm WARN [email protected] requires a peer of draft-js@^0.5.0 but none was installed.

Is this what you've been experiencing?

from react-rte.

sstur avatar sstur commented on September 23, 2024

OK. I've published a new version. I believe that should fix your issues. Turns out peer dependencies are a strange thing when using npm for front-end projects. Purely by one of the dependencies of this project (draft-js-export-html for instance) bumping the versions in their package.json it can break this package. I guess on server-side projects we would just use regular dependencies instead of peer dependencies but with bundlers like webpack that would mean multiple copies of the same thing gets included in the bundle. The standard way around this seems to be peer dependencies but it's suboptimal at best.

from react-rte.

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.