jeryqwq / ProApplication

现代化monorepos应用 react研发模版,帮助你快速构建部门研发环境,组件库+应用开发+微前端+文档系统+工程优化+CI/CD...
https://jeryqwq.github.io/build-docs/#/
419 stars 17 forks source link

页面报错问题 #6

Closed gyt95 closed 1 year ago

gyt95 commented 1 year ago

1.点击菜单栏-微前端-模版,提示 Unhandled Rejection (TypeError): Failed to fetch,如图:

image

2.部分按钮点击后提示 ReferenceError: setCollapse is not defined,如图:

1677835340611

jeryqwq commented 1 year ago
  1. 微前端dev模式下,你的子应用肯定是要先跑起来的,不然无法加载子应用资源。 npm run dev-project 选中你要跑的子应用,跑起来后主应用就可以打开了
  2. 已修复
gyt95 commented 1 year ago
  1. 微前端dev模式下,你的子应用肯定是要先跑起来的,不然无法加载子应用资源。

npm run dev-project 选中你要跑的子应用,跑起来后主应用就可以打开了

  1. 已修复

但问题是我有先执行这个步骤,选了template的,也能单独打开这个微应用,但是我在基座这里点击进入的时候依然报错

jeryqwq commented 1 year ago

子应用端口配置错了,尴尬😅,修复了

gyt95 commented 1 year ago

ok,现在可以了