I'm creating a chess app, but the packages I've tried to use for parsing PGN files throw errors:
https://www.npmjs.com/package/pgn-parser
https://www.npmjs.com/package/cm-pgn
However, when I paste the same PGN into Lichess or open the file there, everything works fine. I was wondering how Lichess handles parsing PGN files, particularly in studies, since comments are important for my app