alibaba / ice

🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)
https://ice.work
MIT License
17.8k stars 2.09k forks source link

使用webpackPlugins打包报错 #6851

Closed WenDaaa closed 2 months ago

WenDaaa commented 3 months ago

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

ClarkXia commented 3 months ago

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