alibaba / alibaba/lowcode-engine
demo仓库的“数据源初始化”时存在Failed to init plugin:DataSourcePane, it maybe affect those plugins which depend on this.
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
## 复现截图
猜测可能的原因是[这里引入的](https://github.com/alibaba/lowcode-demo/commit/534f82f14c7535c77a41cf45e56ed09a961993e3#diff-307ef8117244a9036c76969f86bbbefe25745e1e9d60e3ef8d01736f2767b656L7-L19)。
lowcode-demo代码拉下来之后初始化“数据源面板”控制台报错

```
index.js:1
[designer:pluginManager] Failed to init plugin:DataSourcePane, it maybe affect those plugins which depend on this.
gner:pluginManager] TypeError: Cannot read properties of undefined (reading 'dataSourceTypes')
at init (index.js:23:1)
at LowCodePlugin._callee$ (plugin.ts:86:29)
at tryCatch (plugin.ts:8:1)
at Generator._invoke (plugin.ts:8:1)
at Generator.next (plugin.ts:8:1)
at asyncGeneratorStep (plugin.ts:8:1)
at _next (plugin.ts:8:1)
at plugin.ts:8:1
at new Promise ()
at LowCodePlugin. (plugin.ts:8:1)
at LowCodePlugin.init (plugin.ts:88:4)
at Proxy._callee3$ (plugin-manager.ts:150:48)
at tryCatch (plugin-manager.ts:2:1)
at Generator._invoke (plugin-manager.ts:2:1)
at Generator.next (plugin-manager.ts:2:1)
at asyncGeneratorStep (plugin-manager.ts:2:1)
at _next (plugin-manager.ts:2:1)
```
## 复现流程与链接
```
git clone git@github.com:alibaba/lowcode-demo.git
git checkout ec464015787cf151c9b6dd3c93d64ef284d15988
yarn start
```
打开终端出现“数据源”面板报错信息
## 期望结果
数据源面板能正常展示
## 环境信息
- 引擎版本 1.0.15
- ext 版本 1.0.4
- 物料
- moment﹫2.24.0
- lodash
- iconfont-icons
- ﹫ant-design/icons﹫4.7.0
- antd﹫4.23.0
- ﹫alifd/next﹫1.26.4
- ﹫alilc/antd-lowcode-materials﹫1.0.6
- ﹫seada/antd-materials﹫1.0.0-rc.15
- ﹫seada/formily-materials﹫1.0.0-rc.15
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.