Comments (7)
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.
Possible your doubled(!) parenthesis causes the trouble.
from chessgroundx.
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.
Expected type of dimensions
is definitely not an expression, but an object.
from chessgroundx.
I was using that term semantically, you can pass any JS in between the outer braces.
from chessgroundx.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chessgroundx.