Giter Site home page Giter Site logo

Comments (7)

Bebul avatar Bebul commented on September 4, 2024

Sorry.
It looks it does not work on the 8682404 either.
npm install does not end with errors, but it does not install modules/pgn-viewer/package.json. When I try to install it the same errors happen.

from pgn-viewer.

Bebul avatar Bebul commented on September 4, 2024

So I am trying to experiment over the fresh 1d51383 state...
When I remove the dependance line:

    "chessground": "mliebelt/Chessground",

The npm install works, but the build fails for

Module not found: Error: Can't resolve 'chessground' in 'D:\dev\PgnViewerJS-original\src'

from pgn-viewer.

Bebul avatar Bebul commented on September 4, 2024

So, it looks like mliebelt/chessboard relevant issue, which is only fork of the original lichess chessboard.
I have tried to run yarn install here and it fails with the exactly the same reason:

'$npm_execpath' is not recognized as an internal or external command

When I replace the environment variable with

"prepare": "npm run compile", // instead of "prepare": "$npm_execpath run compile",

I am able to run yarn install and process demo.html.

from pgn-viewer.

Bebul avatar Bebul commented on September 4, 2024

I think, there are two possible ways to overcome this issue:

  1. avoid using github repository as a library and deploy it into some @mliebelt/chessboard and use this one.
  2. or try to make mliebelt/Chessboard cross platform
    • I have already tried to do it on the clone of your repository and I was able to build the chessboard
    • I will try to use it in the PgnViewerJS and if it works, I will try to pose a Pull Request

from pgn-viewer.

Bebul avatar Bebul commented on September 4, 2024

And here you are mliebelt/chessground#1

(I think, if the PR will be accepted (please, try it) then this issue can be closed.)

from pgn-viewer.

mliebelt avatar mliebelt commented on September 4, 2024

Ok, I have merged your pull request. I tried some months ago to upgrade Chessground to the newest version, but failed, and did not find out the reason for that. Perhaps I will try that again, to get rid of the necessity to build Chessground on my own. For the moment, you should be able to build pgn-viewer again.

from pgn-viewer.

Bebul avatar Bebul commented on September 4, 2024

Perhaps I will try that again, to get rid of the necessity to build Chessground on my own.

It was first thing I tried too. Also failed.
I will try again.

For the moment, you should be able to build pgn-viewer again.

I was able to do so using my own build, forking yours, so I expect it really should work now.

Thank you 👍

from pgn-viewer.

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.