Google chrome devtools google chrome中未定义的未捕获(承诺)

Google chrome devtools google chrome中未定义的未捕获(承诺),google-chrome-devtools,es6-promise,Google Chrome Devtools,Es6 Promise,在google chrome中,我得到了这个错误,但我不明白是什么原因导致了它 photoflote.getJsonFile()函数正确返回承诺 承诺有自己的.catch()代码 为什么会在第395行抛出该错误?原因是promise.then()需要两个参数,resolve()函数和reject()函数 我只有一个

在google chrome中,我得到了这个错误,但我不明白是什么原因导致了它

photoflote.getJsonFile()
函数正确返回承诺

承诺有自己的
.catch()
代码


为什么会在第395行抛出该错误?

原因是
promise.then()
需要两个参数,resolve()函数和reject()函数

我只有一个