uaktags / explorer

An open source block explorer
BSD 3-Clause "New" or "Revised" License
6 stars 8 forks source link

First run - this.options.preload.forEach error #7

Closed spy0012 closed 5 years ago

spy0012 commented 5 years ago

Just wondered if anyone could help with this error, Clean install and running with npm start and i get the below error, i also know this is WIP but i cannot solve this issue.

Starting cluster with pid: 9034 /var/www/vhosts/explorer/node_modules/i18next/dist/commonjs/i18next.js:234 this.options.preload.forEach(function (l) { ^ TypeError: this.options.preload.forEach is not a function at I18n.loadResources (/var/www/vhosts/explorer/node_modules/i18next/dist/commonjs/i18next.js:234:32) at setLng (/var/www/vhosts/explorer/node_modules/i18next/dist/commonjs/i18next.js:320:16) at I18n.changeLanguage (/var/www/vhosts/explorer/node_modules/i18next/dist/commonjs/i18next.js:326:9) at Timeout.load [as _onTimeout] (/var/www/vhosts/explorer/node_modules/i18next/dist/commonjs/i18next.js:178:16) at ontimeout (timers.js:482:11) at tryOnTimeout (timers.js:317:5) at Timer.listOnTimeout (timers.js:277:5) /var/www/vhosts/explorer/node_modules/i18next/dist/commonjs/i18next.js:234 this.options.preload.forEach(function (l) { I have not changed any dependencies just edited settings and run, as per a previous install without i18next.

any help on narrowing down the issue is appreciated - I also seen the error mentioned on another issue but i have the language change already as it was a recent download.

I know you can't reproduce it looking at your comments on the other issue, did you replicate the error, as i can't find any information on this.

Server Linux 18.04 Mongodb - 3.6.12 Nodejs - 8.10.0

uaktags commented 5 years ago

I might have to look to an alternative for this multilang.

What's your npm version? Going to try spinning up a VM to work with

spy0012 commented 5 years ago

npm version is 3.5.2

Tried reverting language back to languages and it stops that error but doesn't work even then

uaktags commented 5 years ago

installed that vm, encountering the issue now. working through it now.

uaktags commented 5 years ago

F-ing stupid. So this issue is actually a new break from the settings.js fix we had. Preload needs an array, but I removed the array when I did the variable change to language (from languages).

spy0012 commented 5 years ago

Works Great now as far as i can tell, there are issues with the /scripts want me to create a new issue. Issues like masternodes.js throws an error then sync.js won't complete creating index in tmp stopping all updates. Masternode page not showing masternodes. Let me know and i will try to compile a list of errors

uaktags commented 5 years ago

Yea, let's get this closed and then create a new issue. This way we can keep track of issues and fixes via commits. Thanks I'm using Vulc to test with in terms of masternodes so i'll go through and test. Last i remember I was making tweaks to sync and may have broke it