Skip to content

hilite.replace is not a function #372

@swedenismycity

Description

@swedenismycity

when running the demo.html provided in the repository this board seems to return an error:

  Chessground(document.getElementById('board-4'), {
    orientation: 'black',
    coordinatesOnSquares: true,
    ranksPosition: 'left',
  });

the first 3 render just fine, but the 4th returns this error:

  • Uncaught TypeError: hilite.replace is not a function

  • hiliteOf svg.ts:396

  • syncDefs svg.ts:103

  • renderSvg svg.ts:91

  • redrawNow chessground.ts:30

  • redrawAll chessground.ts:47

  • Chessground chessground.ts:54

  • demo.html:38

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions