Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html-react-parser dependency pulling old React version #62

Open
alessandrojcm opened this issue Jun 24, 2019 · 0 comments
Open

html-react-parser dependency pulling old React version #62

alessandrojcm opened this issue Jun 24, 2019 · 0 comments

Comments

@alessandrojcm
Copy link

alessandrojcm commented Jun 24, 2019

Hi there,

I'm using this plugin on a project, but I'm having this weird issue.
You'll see, this plugin depends on html-react-parser on its 0.x.x version; this package in turn depends on [email protected] which in turn pulls React version 15.6.2. My project uses the latest React version, so this causes a duplicate module error; with my project failing to run.

Here's the output of yarn why illustrating the problem:

yarn why v1.15.2
[1/4] Why do we have the module "react"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "[email protected]"
info Has been hoisted to "react"
info Reasons this module exists
   - Specified in "dependencies"
   - Hoisted from "netlify-cms#react"
   - Hoisted from "background-image-on-load#react"
   - Hoisted from "gatsby#gatsby-cli#react"
   - Hoisted from "netlify-cms#netlify-cms-app#netlify-cms-core#react"
=> Found "gatsby-plugin-favicon#[email protected]"
info Reasons this module exists
   - "gatsby-plugin-favicon#html-react-parser#react-dom-core" depends on it
   - Hoisted from "gatsby-plugin-favicon#html-react-parser#react-dom-core#react"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant