How to correctly import a function, returning Promise? NodeJS

前端 未结 0 435
臣服心动
臣服心动 2021-01-31 03:25

there\'s a promise-returning function fileToArray(). It successfully works in its original js file. But if i export it and import in another file, it doesn\'t:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题