birkir / gatsby-source-prismic-graphql

Gatsby source plugin for Prismic GraphQL
MIT License
137 stars 75 forks source link

apollo-link@1.2.12" has unmet peer dependency "graphql@^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0". #72

Open ghost opened 5 years ago

ghost commented 5 years ago

Hi there, i have huge Problem, because my Gatsby site won't run and build anymore. The develop / build command showed something like: "duplicate "graphql" modules" using gatsby-source prismic-graphql. After deleting the node_modules / cache folder i tried to reinstall all packages. At this time the following message appeared:

warning "gatsby-source-prismic-graphql > apollo-link-context > apollo-link@1.2.12" has unmet peer dependency "graphql@^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0".

warning "gatsby-source-prismic-graphql > gatsby-source-graphql > apollo-link@1.2.1" has incorrect peer dependency "graphql@^0.11.3 || ^0.12.3 || ^0.13.0".

warning "gatsby-source-prismic-graphql > gatsby-source-graphql > graphql-tools@3.1.1" has incorrect peer dependency "graphql@^0.13.0".

warning "gatsby-source-prismic-graphql > apollo-link-context > apollo-link > apollo-utilities@1.3.2" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".

warning "gatsby-source-prismic-graphql > apollo-boost@0.3.1" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".

warning "gatsby-source-prismic-graphql > apollo-boost > apollo-cache-inmemory@1.6.3" has unmet peer dependency "graphql@0.11.7 || ^0.12.0 || ^0.13.0 || ^14.0.0".

warning "gatsby-source-prismic-graphql > apollo-boost > apollo-client@2.6.4" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".

I tried to change package versions for hours... without any success. I even started a blank new Gatsby project and the same message appeared when adding gatsby-source-prismic-graphql.

No matter what react / gatsby version im using. Nothing works.

Any advice?

ghost commented 5 years ago

It even won't work with this offical starter repository containing the following dependecies:

  "dependencies": {
    "gatsby": "^2.1.32",
    "gatsby-plugin-manifest": "^2.0.24",
    "gatsby-plugin-offline": "^2.0.25",
    "gatsby-plugin-react-helmet": "^3.0.9",
    "gatsby-plugin-sass": "^2.0.11",
    "gatsby-source-prismic-graphql": "^3.1.3",
    "node-sass": "^4.11.0",
    "prismic-javascript": "^2.0.1",
    "prismic-reactjs": "^0.3.2",
    "prop-types": "^15.7.2",
    "react": "^16.8.4",
    "react-dom": "^16.8.4",
    "react-helmet": "^5.2.0"
  },
  "devDependencies": {
    "prettier": "^1.16.4"
  },
mindmergedesign commented 5 years ago

I am having the same issue. I have tried reverting my repo to previous versions when everything was working fine, installing different versions of the plugin, starting a brand new project, and nothing works. Not really sure what the issue is. Maybe an incompatible peer dependency is making the plugin not work anymore?

ghost commented 5 years ago

@mindmergedesign after some hours i got it to work again. First you need to delete the node_modules and Cache folder. After that install version 3.0.4-beta.1 of the prismic-source-graphql Plugin. Now the the development command should run just fine again. If you still have some errors on your site because of your render template. Replacing all with {RichText.render(document.data.title, linkResolver)} could help. :)

mindmergedesign commented 5 years ago

That's weird because I am already using that version of the plugin and also deleted the node_modules and cache folder but that didn't work for me.

On Sun, Aug 18, 2019 at 11:56 PM Ingo Köpp notifications@github.com wrote:

@mindmergedesign https://github.com/mindmergedesign after some hours i got it to work again. First you need to delete the node_modules and Cache folder. After that install version 3.0.4-beta.1 of the prismic-source-graphql Plugin. Now the the development command should run just fine again. If you still have some errors on your site because of your render template. Replacing all with {RichText.render(document.data.title, linkResolver)} could help. :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/birkir/gatsby-source-prismic-graphql/issues/72?email_source=notifications&email_token=AAELRCPFAMCNL5ZMKLGL6SLQFIKYTA5CNFSM4IMSGG72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4RTVEI#issuecomment-522402449, or mute the thread https://github.com/notifications/unsubscribe-auth/AAELRCPBDSDSEYCIOTO4UHLQFIKYTANCNFSM4IMSGG7Q .

-- Juan Giraldo Director of Design / Mind Merge Design Website: https://mindmergedesign.com Email: jgiraldo@mindmergedesign.com Phone: (304) 376.3837 [image: social-icon-twitter] https://twitter.com/juanggiraldo [image: social-icon-linkedin] https://www.linkedin.com/in/juangiraldo/ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.