GithubHelp home page GithubHelp logo

Comments (11)

zero-plusplus avatar zero-plusplus commented on May 26, 2024 1

I am using machine translation.

To support gatsby v3, simply change the peerDependencies in package.json to "^3.0.0".

https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/#for-plugin-maintainers

from gatsby-remark-vscode.

kremalicious avatar kremalicious commented on May 26, 2024

There might be more updates required to make this plugin fully work with Gatsby v3. I am running into this issue locally with Gatsby v3.0.4 & gatsby-remark-vscode v3.2.0:

When running local dev server, after saving for the second or third time, the dev server just hangs with:

Missing onError handler for invocation 'building-schema', error was 'Error: Schema must contain
uniquely named types but contains multiple types named "GRVSCStylesheet".'. Stacktrace was 'Error:
 Schema must contain uniquely named types but contains multiple types named "GRVSCStylesheet".

This has also been reported over on gatsby repo gatsbyjs/gatsby#30199

I am able to reproduce this in a minimal test case with gatsby-starter-blog + gatsby-remark-vscode + gatsby-source-graphql https://github.com/kremalicious/gatsby-test-case-30199

from gatsby-remark-vscode.

andrewbranch avatar andrewbranch commented on May 26, 2024

Interesting find @kremalicious. I had observed earlier that multiple type declarations seemed to merge, which was really useful. I guess that’s not allowed anymore, which is a shame.

from gatsby-remark-vscode.

kremalicious avatar kremalicious commented on May 26, 2024

seems to have been addressed in upstream gatsby for all similar use cases, pending new Gatsby release gatsbyjs/gatsby#30318

from gatsby-remark-vscode.

andrewbranch avatar andrewbranch commented on May 26, 2024

Great! This is why I don’t fix bugs too fast 😂

In seriousness, I’m not sure when I’ll have time to get to the rest of this issue, but if someone wants to open a PR updating the peer dep and making sure everything works, I will make the time to review it.

from gatsby-remark-vscode.

tnorlund avatar tnorlund commented on May 26, 2024

I just upgraded to Gatsby 3.0.1, and I'd like to install this package. When I attempt to, Get the error that the peer dependency is for Gatsby v 2.12.1. Is this still an issue?

from gatsby-remark-vscode.

tnorlund avatar tnorlund commented on May 26, 2024

I would really like to help out with this. I have a PR, but I'm not sure how you are handling the Jest testing. The GraphQL queries are off. If I could get the testing working, I'm sure I could increment the packages required for Gatsby V3.

from gatsby-remark-vscode.

tnorlund avatar tnorlund commented on May 26, 2024

How do I NPM install this to my Gatsby site?

from gatsby-remark-vscode.

andrewbranch avatar andrewbranch commented on May 26, 2024

Released as v3.2.1. Thanks @tnorlund!

from gatsby-remark-vscode.

yehezkiell avatar yehezkiell commented on May 26, 2024

is this already fixed? could not use gatsby-remark-vscode with gatsby version 4.5.4 @andrewbranch

from gatsby-remark-vscode.

andrewbranch avatar andrewbranch commented on May 26, 2024

#174

from gatsby-remark-vscode.

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.