Repository navigation
子应用使用vite报错
#629
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
主应用使用的官方的 https://stackblitz.com/edit/garfish-demo?file=react-sub%2Fsrc%2FApp.js
子应用使用 vite
npm create vite@latest vite-vue -- --template vue和npm create vite@latest vite-react -- --template react新建了两个。按照官方的 https://www.garfishjs.org/guide/demo/vite 配置了子应用
vue main.js
react main.js
官方代码 main 修改如下
但是实际运行的时候报错


不管是vue还是react都会有这个错。如果是react,把子应用sandbox打开,则会出现
这个问题该怎么解决
All reactions