intl-example icon indicating copy to clipboard operation
intl-example copied to clipboard

Error: Callback must be a function

Open wind13 opened this issue 7 years ago • 3 comments
trafficstars

测试了一下报了如下的错:

➜  intl-example git:(master) ✗ npm run dev

> [email protected] dev /Users/samliu/gits/demos/intl-example
> dora -p 8001 --plugins webpack,proxy,hmr,livereload

(node:39378) [DEP0016] DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
          proxy: listened on 8989
     livereload: listening on 35729
(node:39378) ExperimentalWarning: The fs.promises API is experimental
📦  650/650 build modules
webpack: bundle build is now finished.
Caught exception: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:140:9)
    at Object.fs.writeFile (fs.js:1258:14)
    at Recorder.self.updateRecordBody (/Users/samliu/gits/demos/intl-example/node_modules/dora-anyproxy/lib/recorder.js:103:12)
    at Recorder.self.updateRecord (/Users/samliu/gits/demos/intl-example/node_modules/dora-anyproxy/lib/recorder.js:64:14)

wind13 avatar Jun 08 '18 09:06 wind13

遇到了一样的问题,求问怎么解决

umgsai avatar Jul 03 '18 04:07 umgsai

已解决,用node9或以下版本。

umgsai avatar Jul 03 '18 04:07 umgsai

除了node版本降级,还有其他什么方法吗?

PanJianNan avatar Mar 16 '19 04:03 PanJianNan