showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript
http://www.showdownjs.com/
MIT License
14.26k stars 1.56k forks source link

Yargs update broke the CLI #894

Closed tivie closed 2 years ago

tivie commented 2 years ago

As reported by @gbtami in https://github.com/showdownjs/showdown/issues/893

After installing 2.0.1 I get this:

$ ./md2html.sh
/home/tamas/pychess-variants/node_modules/showdown/src/cli/makehtml.cmd.js:7
yargs.reset()
      ^

TypeError: yargs.reset is not a function
    at Object.<anonymous> (/home/tamas/pychess-variants/node_modules/showdown/src/cli/makehtml.cmd.js:7:7)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/tamas/pychess-variants/node_modules/showdown/src/cli/cli.js:37:3)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
/home/tamas/pychess-variants/node_modules/showdown/src/cli/makehtml.cmd.js:7

My script is here https://github.com/gbtami/pychess-variants/blob/master/md2html.sh