我都快疯了。我有下面的代码,当我运行它时,我只有debug-1打印。如果我注释掉where声明,就会打印debug-1和debug-2。
console.log( 'debug-1' )
var where = {
compound_id: study.compound_id,
species: {
"like": ( species + "*" )
},
study_start: {
"<=": study.study_start
},
study_start: {
">=": threeYearsBeforeStudy
}
}
console.log( 'debug-2' )超级奇特。我在promise中有这个代码块,但我确信这不应该是一个问题。
发布于 2016-04-07 02:11:38
添加代码
process.on('unhandledRejection', console.log.bind(console))
添加到您的依赖项之后的节点文件顶部。这会让你知道哪里出了问题,似乎你在没有处理的情况下就遇到了一个错误。
https://stackoverflow.com/questions/36459041
复制相似问题