我克隆蚂蚁设计在github,并想运行它根据官方的guide.but,它不能工作。错误:
throw new ERR_INVALID_CALLBACK();
^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:140:9)
at Object.fs.writeFile (fs.js:1258:14)
at module.exports (/Users/sufang/ant-design/node_modules/_bisheng-plugin-antd@0.16.3@bisheng-plugin-antd/lib/process-demo.js:142:8)
at module.exports (/Users/sufang/ant-design/node_modules/_bisheng-plugin-antd@0.16.3@bisheng-plugin-antd/lib/node.js:14:12)
at /Users/sufang/ant-design/node_modules/_bisheng@0.28.3@bisheng/lib/utils/source-data.js:210:30
at Array.reduce (<anonymous>)
at Object.exports.process (/Users/sufang/ant-design/node_modules/_bisheng@0.28.3@bisheng/lib/utils/source-data.js:209:32)
at process.<anonymous> (/Users/sufang/ant-design/node_modules/_bisheng@0.28.3@bisheng/lib/loaders/common/worker.js:13:35)
at process.emit (events.js:182:13)
at emit (internal/child_process.js:807:12)有人知道如何解决这个问题吗?谢谢!
发布于 2018-06-22 15:50:22
现在应该用https://github.com/ant-design/bisheng-plugin-antd/commit/2f6c5db91ebe352017ae989cdd03cc46845e0573来修复了。尝试reintall node_modules并重新启动。
https://stackoverflow.com/questions/50989694
复制相似问题