alibaba / alibaba/lowcode-engine

通过@alilc/build-plugin-alt包代理网站保存后,packages数组内没有自己的组件库

Open
#1,461 6 comments 0 reactions 0 assignees View on GitHub
insufficient information
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

环境:后台有自己的vm,代理低代码框架资源“designer”,然后按照官网的顺序添加好了自己的组件库“components”(化名),

bug重现步骤:
正常打开自己的后台vm网页,然后拖动自己的组件进行搭建并保存后,查看localStorage里的packages数组里面有自己的组件库components包名的,并且预览是成功的,控制台可以打印出我自己的组件库,并且netWork里面的JS界面也有我的componets.js文件,
![image](https://user-images.githubusercontent.com/65531323/211252658-674119ca-def7-4657-904d-02772e56ba86.png)

但是,当我运行组件库components时,因为有@alilc/build-plugin-alt包,所以自动代理到我的后台vm网站,并且打开vm网站弹出

![image](https://user-images.githubusercontent.com/65531323/211249687-3739ca1e-cb38-4288-94bb-473c68865a25.png)

标识代理成功,

,然后我在这个debug页面下拖动自己的组件进行搭建,点击保存,再次查看localStorage里的packages数组,里面就没有了组件库components了,并且点击预览,预览页面弹出图片
![image](https://user-images.githubusercontent.com/65531323/211250123-f465b024-ddf9-4dd1-afe5-bfbc4190ba86.png)
,标识代理成功,

预览页面会报components not found,控制台也没有打印出我自己的组件库,并且netWork里面的JS界面没有我的components.js,
![image](https://user-images.githubusercontent.com/65531323/211252689-e28b404d-3dff-424e-be6c-36f3c192508c.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in the debug page with the @alilc/build-plugin-alt proxy, then compare localStorage packages and network requests before and after saving. Done means the custom components package remains in packages and components.js loads so preview can find the components.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.