Giter VIP home page Giter VIP logo

Comments (4)

xabikos avatar xabikos commented on August 30, 2024 1

@eddjoke thanks for reporting this one and I am sorry for the late reply. There is an error indeed because of a forgotten duplicate key in snippets declaration. (More details)
Obviously this was not a problem for previous versions of VS Code but now it is. I have fixed this one. But I am going to wait for a few days to also merge #44 and then publish a new version, if you don't mind.

from vscode-react.

FoxShaunR avatar FoxShaunR commented on August 30, 2024

I'm having the same issue.

Versions:

  • VSCode 1.22.0 (1.22.0)
  • Same version of the snippets plugin

from vscode-react.

edvinasjurele avatar edvinasjurele commented on August 30, 2024

@xabikos thanks for letting me know. To clarify, which key is a duplicate?

rpt is actually a unique prefix in the snippets.json, but I am wondering if it might clash with something else. That's why I cannot come up with the fix.

from vscode-react.

xabikos avatar xabikos commented on August 30, 2024

@eddjoke rpt is indeed unique as prefix. The problem is that in the current version propTypes is declared two times. So it's

"propTypes": {
    "prefix": "rpt",
  },
  "propTypes": {
    "prefix": "rdp",
  },

This apparently was fine in older versions of VS code but not any more.

from vscode-react.

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.