node_modules/qiniu-js/src/api/index.ts 引入错误
Closed this issue · 3 comments
Himavanta commented
在文件 node_modules/qiniu-js/src/api/index.ts 中第一行
import { stringify } from 'querystring'
报错
index.ts:1 Uncaught SyntaxError: The requested module '/node_modules/querystring/index.js?v=fb30c138' does not provide an export named 'stringify' (at index.ts:1:10)
我检查了 ‘querystring’ 这个包的源码,根本没有导出一个 stringify 的方法
文件位置:node_modules/querystring/index.js
版本:0.2.1
然后在qiniu-js的node_modules/qiniu-js/src/api/index.ts中还有如下代码

这是啥东西呀,这代码怎么运行的
yinxulai commented
确实存在 querystring.stringify
https://github.com/Gozala/querystring/blob/master/index.js
yinxulai commented
可能是主项目对 commonjs 的导入配置错误引起的
yinxulai commented
太长时间没有得到有效反馈,所以关闭