Comments (11)
You’re probably using an old version of preact. Use a version that supports getDerivedStateFromProps, such as 8.4.2.
from shudan.
Upgraded to preact 8.4.2 but still does not work
from shudan.
Can you build and run the demo?
from shudan.
Can you build and run the demo?
Yes, I can.
from shudan.
I create a new preact project using create-preact-app with material template here and use Goban in shudan. it does not work.
Here is the git repository.
https://github.com/restingisimportant/preact-cli-shudan
Also i don't know why the stone does not appeared now, i must be missing something
from shudan.
In the git repository, you’re using an old version of preact. Are you sure you tried updating preact to 8.4.2?
from shudan.
In the git repository, you’re using an old version of preact. Are you sure you tried updating preact to 8.4.2?
Hi, Sorry i forgot to update it for this one, now i updated it already. but problems still persist.
Also, the board does not show up completely
from shudan.
I suspect it's a transpilation issue of [...Array(n)]
. I've changed it to Array(n).fill(0)
to circumvent it. Can you try updating Shudan to v1.3.12 and see if it's working for you?
from shudan.
Board does show correctly now.
However, build command still not success.
You can test by this repository
https://github.com/restingisimportant/preact-cli-shudan
from shudan.
It seems like preact-cli doesn't support getDerivedStateFromProps
during prerender yet. Either don't use prerender (by running preact build --no-prerender
like it suggested) or use the non-stable next version of preact-cli.
from shudan.
It seems like preact-cli doesn't support
getDerivedStateFromProps
during prerender yet. Either don't use prerender (by runningpreact build --no-prerender
like it suggested) or use the non-stable next version of preact-cli.
I got issue about preact build --no-prerender before. it does work now.
Thank you very much.
from shudan.
Related Issues (20)
- Use in a React project? HOT 9
- 你好,移植Vue.js中,请教项目中的技术细节 HOT 4
- Responsive based on screen size ? HOT 1
- Star / Hoshi on small board
- Possible issue with old mobile browser. HOT 1
- help wanted, example setup of integration shudan into react project
- Any plan to add typescript support as @types/@sabaki/shudan ? HOT 1
- Stone images look pixellated HOT 17
- Hover stones for mouse placement of stones HOT 1
- Error: Package path ./hooks is not exported from package react HOT 4
- Two size-related issues
- Add .shudan-boundary to the gridlines representing the goban boundary
- Does Shudan Support Region Selection?
- Using with React without webpack HOT 1
- Board graphic bug HOT 3
- Alternative board coordinates HOT 2
- Class constructor Goban cannot be invoked without 'new' HOT 3
- 本地webpack-cli过旧导致demo无法构建
- Easy way to remove the stone when it has no liberty HOT 1
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 shudan.