alibaba / ice

🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)

Home Page:https://ice.work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用webpackPlugins打包报错

WenDaaa opened this issue · comments

Describe the bug

需要增加一个plugin,传入的一个正则表达式,然后加了以后报错
image

Expected behavior

希望可以正常运行

Actual behavior

项目中引入@gradio/client报错 UnhandledSchemeError: Reading from "node:buffer" is not handled by plugins 根据这篇文章(https://www.saoniuhuo.com/question/detail-2735070.html)的配置webpackplugin

Version of ice.js

2.6.6

Content of build.json or ice.config.mts

No response

Additional context

No response

应该是参数配置有问题,可以先通过自定义插件来添加 NormalModuleReplacementPlugin https://v2.ice.work/docs/plugin/develop/build