TypeError: Cannot read property 'ws_provider' of undefined
When I trying run, error arises. P.S. I install full-node provider https://github.com/self-node-official and it run successfully, also I do all Setup steps, ws and http URL added node --version v12.22.12 npm --version 6.14.16 Can you help me?
npm run scraper
[email protected] scraper /root/WeChartWeb3 node ./workers/updater/master.js
WARNING: NODE_ENV value of 'staging' did not match any deployment config file names. WARNING: See https://github.com/node-config/node-config/wiki/Strict-Mode WARNING: No configurations found in configuration directory:/root/WeChartWeb3/config WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment. /root/WeChartWeb3/workers/lib/web3.js:6 web3_wss.setProvider(new Web3.providers.WebsocketProvider( scraperConfig[process.env.CHAIN_ID].ws_provider )); ^
TypeError: Cannot read property 'ws_provider' of undefined
at Object.node ./workers/updater/master.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] scraper script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-12-14T10_45_38_579Z-debug.log

have you created also the .env from the .env.example inside the repo? it seems that process.env.CHAIN_ID ( used inside workers/lib/web3.js ) is missing
yes, i copy it

I recreate project and now have this error

Which version of node are you using ? The ?. syntax should be aviable in most recent versions
node --version v12.22.12 npm --version 6.14.16
I update my node version and right now have this type of error

What node version you use?

