利用ES6语法使用七牛官方sdk,'qn'一直出错
1、代码上下文
var qn = require('qn')
var client = qn.create({
accessKey: 'y9Ehh4K2i6o4IjCu8kvo0dT319kk2Xbx6O9nJ',
secretKey: 'V-fzA71AJ1oRnLHcJN4YAYOaz2kFW0MuakJj',
bucket: 'resources',
origin: 'up-z1.qiniu.com'
// timeout: 3600000, // default rpc timeout: one hour, optional
// if your app outside of China, please set `uploadURL` to `http://up.qiniug.com/`
// uploadURL: 'http://up.qiniu.com/',
})
2、webpack编译时输出
WARNING in ./~/qn/lib/client.js
94:14-27 Critical dependency: the request of a dependency is an expression
WARNING in ./~/any-promise/register.js
24:14-37 Critical dependency: the request of a dependency is an expression
Child html-webpack-plugin for "index.html":
chunk {0} index.html 541 kB [entry] [rendered]
[0] ./~/lodash/lodash.js 540 kB {0} [built]
[1] ./~/html-webpack-plugin/lib/loader.js!./app/index.ejs 1.1 kB {0} [built]
[2] (webpack)/buildin/module.js 517 bytes {0} [built]
3、错误信息入下:
./~/qn/lib/client.js
94:14-27 Critical dependency: the request of a dependency is an expression
无法定位具体是哪里的问题,所以请求是否有人了解!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
循环依赖了。