-
Notifications
You must be signed in to change notification settings - Fork 88
打包报错 ReferenceError: ReadableStream is not defined #76
Comments
cheerio 1.0.0 必要node 18+以上 |
是这样的,但是在vite-plugin-qiankun 的1.0.5项目里用的cheerio是 "cheerio": "^1.0.0-rc.10",3天前cheerio升级了1.0.0导致的该问题。我现在已经解决了 在项目里指定 "cheerio": "^1.0.0-rc.12" 就可以了,cheerio : 1.0.0 node版本不够会有问题 |
你好, 是固定yarn.lock吗, 遇到同样问题, 请问具体怎么操作的 |
需要指定cheerio版本,在package.json 添加 resolutions 字段,指定 cheerio 的版本:"resolutions": { |
已经解决了, 感谢 |
怎么解决的呢? |
需要指定cheerio版本,在package.json 添加 resolutions 字段,指定 cheerio 的版本:"resolutions": { |
"vite-plugin-qiankun": "1.0.15" 这个版本已经用了一年多,今天突然打包时报错报错原因是引用了undici ,我发现是包里引用了cheerio库 "cheerio": "^1.0.0-rc.10" ,cheerio 3天前更新了最新版本1.0.0之后。就出现该问题
The text was updated successfully, but these errors were encountered: