terra-money / fcd-classic

Terra ETL + RestFul API Server
https://fcd.terra.dev/swagger
MIT License
63 stars 42 forks source link

Collector TypeError #152

Closed qyun29 closed 2 years ago

qyun29 commented 2 years ago

Hi, I got an error when i run the collector by npm run coldev, 01-02 10:28 [ERROR]: result.flat is not a function TypeError: result.flat is not a function at Object.getValidatorConsensus (/data/fcd/src/lib/lcd.ts:202:17) 01-02 10:28 [ERROR]: result.flat is not a function TypeError: result.flat is not a function at getValidatorConsensus (/data/fcd/src/lib/lcd.ts:202:17)

How can i solve this problem?

tvl83 commented 2 years ago

I just ran into this problem and it seemed to be resolve by updating node. What version of node are you using?

qyun29 commented 2 years ago

I just ran into this problem and it seemed to be resolve by updating node. What version of node are you using?

I'm using v0.5.14-oracle. What version you solve the problem?

tvl83 commented 2 years ago

not the terrad node, but nodejs and npm

image

i was using node v10 and updated to v16

qyun29 commented 2 years ago

not the terrad node, but nodejs and npm

image

i was using node v10 and updated to v16

Oh It WORKS! Thanks for your help! 👍