Giter Club home page Giter Club logo

Comments (7)

rdeyo1129 avatar rdeyo1129 commented on August 12, 2024 1

If anyone stumbles upon this who was wondering and also using one of the react-chessground setups, my issue was that I didn't declare the prop type. Then you might want to look your styling by changing your piece and squares size percentages and the svg numbers.

from chessgroundx.

gbtami avatar gbtami commented on August 12, 2024

Possible your doubled(!) parenthesis causes the trouble.

from chessgroundx.

rdeyo1129 avatar rdeyo1129 commented on August 12, 2024

Thanks for getting back to me, but that throws a lint error, I believe that is correct syntax because the first pair defines that you're going to pass an expression to the prop and the second pair is that you're passing in the object that seems to be defined in this documentation.

from chessgroundx.

gbtami avatar gbtami commented on August 12, 2024

Expected type of dimensions is definitely not an expression, but an object.

from chessgroundx.

rdeyo1129 avatar rdeyo1129 commented on August 12, 2024

I was using that term semantically, you can pass any JS in between the outer braces.

from chessgroundx.

gbtami avatar gbtami commented on August 12, 2024

I don't know your code. This picture is not enough to guess what it is. Sry.
Anyhow, if you want to report a bug, provide a minimal working code to let us reproduce it please.

from chessgroundx.

rdeyo1129 avatar rdeyo1129 commented on August 12, 2024

Ok I'll look into it a bit more and maybe get back to you. I think I am forgetting that I used something to set it up a little differently, I have it setup so that Chessground can be used as a React JSX component. That's where those double parentheses can usually be found if you want to pass an object like that. Thanks for the feedback.

from chessgroundx.

Related Issues (6)

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.