ccxt: npm run build (TypeError: Cannot read property '2' of null) Pandoc 1.19 vs 2.4+
I’m trying to build, I think I installed all the dependencies but I got stuck here
> ccxt@1.17.515 update-badges /Users/obsidianart/Documents/GitHub/ccxt
> node update-badges
Preparing for PyPI → ./python/README.rst (<anonymous> @ update-badges.js:12)
/Users/obsidianart/Documents/GitHub/ccxt/update-badges.js:24
let rstExchangeTableLines = match[2].split ("\n")
^
TypeError: Cannot read property '2' of null
at Object.<anonymous> (/Users/obsidianart/Documents/GitHub/ccxt/update-badges.js:24:34)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:266:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
Also, I’m unclear how you can test your code (except from automated test), I assume example works if you build every time, is there something else I’m missing?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 15 (9 by maintainers)
@kroitor Got your point. But since for the time being this would allow other developers to not fall for this repeated error. I’ll soon send a PR
I had the same problem in macOS high sierra and solve it with downgrade pandoc to 1.19.
"$(brew --repo homebrew/core)/Formula/pandoc.rb"(backup if you want)urlcolumn tohttps://hackage.haskell.org/package/pandoc-1.19.2.4/pandoc-1.19.2.4.tar.gz5a4e56b970e59984fda8cf03c3d89ce6a100f28aa7defaf2da28f68498419902or sha256sum of your pandoc package which suitable with your OSbrew install pandocThere are many not working solution of “downgrade pandoc in macOS” on google search. so I want to share my way although it’s not a solution of root cause. thx!
Would it be okay if I address this in a PR?
Hi, this pandoc issue still persists in the latest docker image. By default, the version is 2.5
I never heard of pandadoc before so I guess it’s the latest. should I try to find and install an older version?