mliebelt / pgn-viewer

Simple PGN viewer with the necessary features to display chess games
GNU General Public License v3.0
163 stars 44 forks source link

Version 7.12.0 of Chessground leads to errors #253

Closed mliebelt closed 2 years ago

mliebelt commented 3 years ago

The PGN viewer is currently using version 7.11.1

I tried to switch to version 7.12.0, but got errors which I don't understand.

ERROR in ./node_modules/chessground/chessground.js 1:0-30
Module not found: Error: Can't resolve './api' in '/home/mliebelt/priv/dev/chess/PgnViewerJS/modules/pgn-viewer/node_modules/chessground'
Did you mean 'api.js'?
BREAKING CHANGE: The request './api' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '*.mjs' file or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

I have to fix the current version of Chessground to 7.11.1, to avoid build errors.

mliebelt commented 2 years ago

Upgraded now to version 8.1.9, and had no problems. Will keep that version, and mark it as resolved with the next new version created from pgn-viewer.