ice-lab / icestark

:tiger: Micro Frontends solution for large application(面向大型应用的微前端解决方案),站点国内镜像:https://icestark.gitee.io
https://micro-frontends.ice.work
MIT License
2.04k stars 174 forks source link

Could not resolve "react" #501

Closed hls-1992 closed 2 years ago

hls-1992 commented 2 years ago

我的主应用安装@ice/stark 2.7.1的版本 主应用采用vite + vue3 运行时出现了下方报错 node_modules/@ice/stark/lib/AppLink.js:23:23: error: Could not resolve "react" (mark it as external to exclude it from the bundle)

不是很清楚原因,这个react有什么关系呢

maoxiaoke commented 2 years ago

https://micro-frontends.ice.work/docs/api/ice-stark-app

对于 Vue 应用,我们建议直接从 lib 下导入