Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Error: Callback must be a function #16

Open
wind13 opened this issue Jun 8, 2018 · 3 comments
Open

Error: Callback must be a function #16

wind13 opened this issue Jun 8, 2018 · 3 comments

Comments

@wind13
Copy link

wind13 commented Jun 8, 2018

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

➜  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)
@umgsai
Copy link

umgsai commented Jul 3, 2018

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

@umgsai
Copy link

umgsai commented Jul 3, 2018

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

@PanJianNan
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants