alibaba / alibaba/lowcode-engine
【关于物料@alilc/element】
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
### 描述问题
通过脚手架生成的`React`组件库引入`ProComponents`组件导致的错误。
### 具体步骤
#### 一、通过组件项目初始化
```javascript
npm init @alilc/element pro-material
```
#### 二、引入 ProComponents 组件
```javascript
npm install @ant-design/pro-components --save
```
#### 三、在项目中使用并导出
1、新增一个组件 Table,并使用 ProTable

2、导出组件

#### 四、执行脚本
```javascript
npm run lowcode:dev
```
执行之后预览地址拖拽组件 ProTable 出现的问题:
初始化报错导致组件没有找到

Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue by running `npm init @alilc/element pro-material`, installing `@ant-design/pro-components`, exporting a component using `ProTable`, and running `npm run lowcode:dev`. Start from the initialization error shown when dragging ProTable into the preview, and verify that the component can be found and initialized there.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100