Ошибка типа [ERR_INVALID_REPL_INPUT] [ERR_INVALID_REPL_INPUT]: прослушиватели для `uncaughtException` не могут использоваться в REPL

#blockchain #truffle #ganache

#блокчейн #трюфель #ганаш

Вопрос:

Я пытаюсь протестировать свое первое приложение на блокчейне.Это мой код

 var Contest = artifacts.require("./Contest.sol");
contract("Contest",function(accounts){
//to check if getting initialized correctly
it("initializes with two contestants", function(){
    return Contest.deployed().then(function(instance){
        return instance.contestantsCount();
    }).then(function(count){
        assert.equal(count,2);
    });
});
});
  

Но я получаю эту ошибку:

 TypeError [ERR_INVALID_REPL_INPUT] [ERR_INVALID_REPL_INPUT]: Listeners 
for `uncaughtException` cannot be used in the REPL
  

Окружающая среда

 Operating System: Microsoft Windows
Truffle v5.0.2 (core: 5.0.2)
Solidity v0.5.0 (solc-js)
Node v14.17.1
  

Ответ №1:

Там не должно быть запятой. Это должно быть:

 X = faces[::-1]
y = faces[:-1:]