Open ibaozi-cn opened 5 years ago
change helper.js line299
md5: (file) => { const md = new MD5(); return new Promise((resolve, reject) => { md.md5(file, (err, md5) => { resolve(err ? false : md5); }, progress => {}); }); } browser-md5-file 升级改了api的原因
hey 不更新么 ? 老铁。
hey 不更新么 ? 老铁。
第二条已经是解决方法了
难受了好几天, 幸亏搜索了一下. 什么时候能合进主线就好了.
错误信息:
helper.js?e101:299 Uncaught (in promise) TypeError: Class constructor BMF cannot be invoked without 'new' at eval (webpack-internal:///./src/js/utils/helper.js:339:42) at new Promise ()
at Object.md5 (webpack-internal:///./src/js/utils/helper.js:338:16)
at Chat._callee13$ (webpack-internal:///./src/js/stores/chat.js:1387:57)
at tryCatch (webpack-internal:///./node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:65:40)
at Generator.invoke [as _invoke] (webpack-internal:///./node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:303:22)
at Generator.prototype.(anonymous function) [as next] (webpack-internal:///./node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:117:21)
at step (webpack-internal:///./src/js/stores/chat.js:377:191)
at eval (webpack-internal:///./src/js/stores/chat.js:377:437)
at new Promise ()
node v8.11.4 npm 5.6.0 mac 10.14 webstrom 2018.2.5
问题出流程:拖动图片到窗口上传